Skip to content

Commit 620fc18

Browse files
authored
fix: disable SA1502 and re-enable SA1511 (#10)
1 parent fb9b0e6 commit 620fc18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cnblogs.CodeQuality.ruleset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.LayoutRules">
219219
<Rule Id="SA1500" Action="Warning"/> <!-- Braces for multi-line statements should not share line -->
220220
<Rule Id="SA1501" Action="Warning"/> <!-- Statement should not be on a single line -->
221-
<Rule Id="SA1502" Action="Warning"/> <!-- Element should not be on a single line -->
221+
<Rule Id="SA1502" Action="None"/> <!-- Element should not be on a single line -->
222222
<Rule Id="SA1503" Action="Hidden"/> <!-- Braces should not be omitted -->
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 -->
@@ -227,7 +227,7 @@
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="None"/> <!-- While-do footer should not be preceded by blank line -->
230+
<Rule Id="SA1511" Action="Warning"/> <!-- 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)