Skip to content

Commit bfafc49

Browse files
committed
Remove Generic.Metrics.CyclomaticComplexity
We use Cognitive Complexity instead https://www.sonarsource.com/docs/CognitiveComplexity.pdf
1 parent fc6c7ce commit bfafc49

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

IxDFCodingStandard/ruleset.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@
107107
-->
108108
<!--Ensures that variables are not passed by reference when calling a function.-->
109109
<rule ref="Generic.Functions.CallTimePassByReference"/>
110-
<rule ref="Generic.Metrics.CyclomaticComplexity">
111-
<properties>
112-
<!-- The cyclomatic complexity above which this sniff will generate warnings -->
113-
<property name="complexity" value="7"/>
114-
<!-- The cyclomatic complexity above which this sniff will generate errors -->
115-
<property name="absoluteComplexity" value="7"/>
116-
</properties>
117-
</rule>
118110
<!-- Checks how many level deep that code is nested within a function. -->
119111
<rule ref="Generic.Metrics.NestingLevel">
120112
<properties>

0 commit comments

Comments
 (0)