Skip to content

Commit 33258a7

Browse files
committed
style: adjust cognitive complexity rules in cs config
1 parent 533b08b commit 33258a7

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

IxDFCodingStandard/ruleset.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
4141
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
4242
<rule ref="Generic.Commenting.Fixme"/>
43-
<!-- Warn above 120 characters, fail above 220 -->
43+
<!-- Warn above 160 characters, fail above 220 -->
4444
<rule ref="Generic.Files.LineLength">
4545
<properties>
4646
<property name="lineLimit" value="160"/>
@@ -189,10 +189,11 @@
189189
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable"/>
190190
<include-pattern>routes/</include-pattern>
191191
</rule>
192-
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLineDocComment"/>
193-
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment"/>
194-
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment"/>
195-
<rule ref="SlevomatCodingStandard.Complexity.Cognitive"/>
192+
<rule ref="SlevomatCodingStandard.Complexity.Cognitive">
193+
<properties>
194+
<property name="maxComplexity" value="10"/>
195+
</properties>
196+
</rule>
196197
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
197198
<rule ref="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing">
198199
<exclude name="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing.IncorrectLinesCountBeforeControlStructure"/>

0 commit comments

Comments
 (0)