From 9e15232d1b9181671cf6c66e1720fb0fb9667256 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 5 Sep 2016 17:41:12 +0100 Subject: [PATCH] NPathComplexity: reduce to 5 to match CyclomaticComplexity --- README.md | 4 +--- src/main/resources/net/kemitix/checkstyle.xml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 10152c6..2d73f81 100644 --- a/README.md +++ b/README.md @@ -1665,9 +1665,7 @@ i --; #### [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). - -> TODO: max = 5 - same as cyclomatic complexity +Checks that the NPATH score (number of paths) through a method is no more than 5. This is similar to [Cyclomatic Complexity](#cyclomaticcomplexity). #### [OneStatementPerLine](http://checkstyle.sourceforge.net/config_coding.html#OneStatementPerLine) diff --git a/src/main/resources/net/kemitix/checkstyle.xml b/src/main/resources/net/kemitix/checkstyle.xml index 3ad7383..f56d306 100644 --- a/src/main/resources/net/kemitix/checkstyle.xml +++ b/src/main/resources/net/kemitix/checkstyle.xml @@ -155,7 +155,7 @@ - +