Skip to content

Commit 3d6cd4f

Browse files
authored
feat: disable sa-407 (#11)
1 parent 620fc18 commit 3d6cd4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Cnblogs.CodeQuality.ruleset

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,21 @@
198198

199199
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.MaintainabilityRules">
200200
<Rule Id="SA1119" Action="Warning"/> <!-- Statement should not use unnecessary parenthesis -->
201-
<Rule Id="SA1400" Action="Error"/> <!-- Access modifier should be declared -->
202-
<Rule Id="SA1401" Action="Error"/> <!-- Fields should be private -->
201+
<Rule Id="SA1400" Action="Error"/> <!-- Access modifier should be declared -->
202+
<Rule Id="SA1401" Action="Error"/> <!-- Fields should be private -->
203203
<Rule Id="SA1402" Action="Warning"/> <!-- File may only contain a single type -->
204204
<Rule Id="SA1403" Action="Warning"/> <!-- File may only contain a single namespace -->
205205
<Rule Id="SA1404" Action="Warning"/> <!-- Code analysis suppression should have justification -->
206206
<Rule Id="SA1405" Action="Warning"/> <!-- Debug.Assert should provide message text -->
207207
<Rule Id="SA1406" Action="Warning"/> <!-- Debug.Fail should provide message text -->
208-
<Rule Id="SA1407" Action="Warning"/> <!-- Arithmetic expressions should declare precedence -->
208+
<Rule Id="SA1407" Action="None"/> <!-- Arithmetic expressions should declare precedence -->
209209
<Rule Id="SA1408" Action="Warning"/> <!-- Conditional expressions should declare precedence -->
210-
<Rule Id="SA1409" Action="None"/> <!-- Remove unnecessary code -->
210+
<Rule Id="SA1409" Action="None"/> <!-- Remove unnecessary code -->
211211
<Rule Id="SA1410" Action="Warning"/> <!-- Remove delegate parenthesis when possible -->
212212
<Rule Id="SA1411" Action="Warning"/> <!-- Attribute constructor should not use unnecessary parenthesis -->
213213
<Rule Id="SA1412" Action="Hidden"/> <!-- Store files as UTF-8 with byte order mark -->
214-
<Rule Id="SA1413" Action="None"/> <!-- Use trailing comma in multi-line initializers -->
215-
<Rule Id="SA1414" Action="None"/> <!-- Tuple items must have names -->
214+
<Rule Id="SA1413" Action="None"/> <!-- Use trailing comma in multi-line initializers -->
215+
<Rule Id="SA1414" Action="None"/> <!-- Tuple items must have names -->
216216
</Rules>
217217

218218
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.LayoutRules">

0 commit comments

Comments
 (0)