NPathComplexity: reduce to 5 to match CyclomaticComplexity
This commit is contained in:
parent
109276cdea
commit
9e15232d1b
2 changed files with 2 additions and 4 deletions
|
@ -1665,9 +1665,7 @@ i --;
|
||||||
|
|
||||||
#### [NPathComplexity](http://checkstyle.sourceforge.net/config_metrics.html#NPathComplexity)
|
#### [NPathComplexity](http://checkstyle.sourceforge.net/config_metrics.html#NPathComplexity)
|
||||||
|
|
||||||
Checks that the NPATH score (number of paths) through a method is no more than 200. This is similar to [Cyclomatic Complexity](#cyclomaticcomplexity).
|
Checks that the NPATH score (number of paths) through a method is no more than 5. This is similar to [Cyclomatic Complexity](#cyclomaticcomplexity).
|
||||||
|
|
||||||
> TODO: max = 5 - same as cyclomatic complexity
|
|
||||||
|
|
||||||
#### [OneStatementPerLine](http://checkstyle.sourceforge.net/config_coding.html#OneStatementPerLine)
|
#### [OneStatementPerLine](http://checkstyle.sourceforge.net/config_coding.html#OneStatementPerLine)
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
</module>
|
</module>
|
||||||
<module name="NoWhitespaceBefore"/> <!-- prevent white space before tokens -->
|
<module name="NoWhitespaceBefore"/> <!-- prevent white space before tokens -->
|
||||||
<module name="NPathComplexity"> <!-- restrict method complexity -->
|
<module name="NPathComplexity"> <!-- restrict method complexity -->
|
||||||
<property name="max" value="400"/>
|
<property name="max" value="5"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<module name="OneStatementPerLine"/> <!-- only one statement per line -->
|
<module name="OneStatementPerLine"/> <!-- only one statement per line -->
|
||||||
|
|
Loading…
Reference in a new issue