Skip to content

Commit f9c0f50

Browse files
committed
Merge pull request #5 from rhowardiv/cc
Treat cyclomatic complexity < 100 as warning only
2 parents 3c9b7bf + 9307c93 commit f9c0f50

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

CodeSniffer/Standards/Snap/ruleset.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@
55
<rule ref="PSR2"/>
66

77
<rule ref="PSR1.Classes.ClassDeclaration">
8-
<properties>
9-
<property name="enforce_namespaces" value="false"/>
10-
</properties>
8+
<properties>
9+
<property name="enforce_namespaces" value="false"/>
10+
</properties>
1111
</rule>
1212

1313
<!-- Other nice things -->
1414
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
15-
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
15+
<rule ref="Generic.Metrics.CyclomaticComplexity">
16+
<properties>
17+
<property name="absoluteComplexity" value="99"/>
18+
</properties>
19+
</rule>
1620
<rule ref="Generic.Metrics.NestingLevel"/>
1721
<rule ref="Generic.Strings.UnnecessaryStringConcat">
18-
<properties>
19-
<property name="error" value="false"/>
20-
</properties>
22+
<properties>
23+
<property name="error" value="false"/>
24+
</properties>
2125
</rule>
2226
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
2327
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>

0 commit comments

Comments
 (0)