Skip to content

Commit fb9b0e6

Browse files
authored
feat: disable SA1511 and enable SA1206 (#9)
1 parent 13706a6 commit fb9b0e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Cnblogs.CodeQuality.ruleset

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@
160160
<Rule Id="SA1201" Action="None"/> <!-- Elements should appear in the correct order -->
161161
<Rule Id="SA1202" Action="Warning"/> <!-- Elements should be ordered by access -->
162162
<Rule Id="SA1203" Action="Warning"/> <!-- Constants should appear before fields -->
163-
<Rule Id="SA1204" Action="None"/> <!-- Static elements should appear before instance elements -->
163+
<Rule Id="SA1204" Action="None"/> <!-- Static elements should appear before instance elements -->
164164
<Rule Id="SA1205" Action="Warning"/> <!-- Partial elements should declare access -->
165-
<Rule Id="SA1206" Action="None"/> <!-- Declaration keywords should follow order -->
165+
<Rule Id="SA1206" Action="Warning"/> <!-- Declaration keywords should follow order -->
166166
<Rule Id="SA1207" Action="Warning"/> <!-- Protected should come before internal -->
167167
<Rule Id="SA1208" Action="Warning"/> <!-- System using directives should be placed before other using directives -->
168168
<Rule Id="SA1209" Action="Warning"/> <!-- Using alias directives should be placed after other using directives -->
@@ -223,11 +223,11 @@
223223
<Rule Id="SA1504" Action="Warning"/> <!-- All accessors should be single-line or multi-line -->
224224
<Rule Id="SA1505" Action="Warning"/> <!-- Opening braces should not be followed by blank line -->
225225
<Rule Id="SA1506" Action="Warning"/> <!-- Element documentation headers should not be followed by blank line -->
226-
<Rule Id="SA1507" Action="Error"/> <!-- Code should not contain multiple blank lines in a row -->
226+
<Rule Id="SA1507" Action="Error"/> <!-- Code should not contain multiple blank lines in a row -->
227227
<Rule Id="SA1508" Action="Warning"/> <!-- Closing braces should not be preceded by blank line -->
228228
<Rule Id="SA1509" Action="Warning"/> <!-- Opening braces should not be preceded by blank line -->
229229
<Rule Id="SA1510" Action="Warning"/> <!-- Chained statement blocks should not be preceded by blank line -->
230-
<Rule Id="SA1511" Action="Warning"/> <!-- While-do footer should not be preceded by blank line -->
230+
<Rule Id="SA1511" Action="None"/> <!-- While-do footer should not be preceded by blank line -->
231231
<Rule Id="SA1512" Action="Warning"/> <!-- Single-line comments should not be followed by blank line -->
232232
<Rule Id="SA1513" Action="Warning"/> <!-- Closing brace should be followed by blank line -->
233233
<Rule Id="SA1514" Action="Warning"/> <!-- Element documentation header should be preceded by blank line -->

0 commit comments

Comments
 (0)