Skip to content

Commit

Permalink
Merge pull request SnapInteractive#5 from rhowardiv/cc
Browse files Browse the repository at this point in the history
Treat cyclomatic complexity < 100 as warning only
  • Loading branch information
rhowardiv committed Jan 24, 2013
2 parents 3c9b7bf + 9307c93 commit f9c0f50
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions CodeSniffer/Standards/Snap/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@
<rule ref="PSR2"/>

<rule ref="PSR1.Classes.ClassDeclaration">
<properties>
<property name="enforce_namespaces" value="false"/>
</properties>
<properties>
<property name="enforce_namespaces" value="false"/>
</properties>
</rule>

<!-- Other nice things -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="absoluteComplexity" value="99"/>
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel"/>
<rule ref="Generic.Strings.UnnecessaryStringConcat">
<properties>
<property name="error" value="false"/>
</properties>
<properties>
<property name="error" value="false"/>
</properties>
</rule>
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
Expand Down

0 comments on commit f9c0f50

Please sign in to comment.