diff --git a/docs/config_metrics.html b/docs/config_metrics.html new file mode 100644 index 000000000..5a3a0bfc5 --- /dev/null +++ b/docs/config_metrics.html @@ -0,0 +1,110 @@ + + + +
+Metrics Checks |
+ ![]() |
+
+
|
+
+
+
+ CyclomaticComplexity+Description+ ++Checks cyclomatic complexity against a specified limit. The complexity is +measured by the number of + if, + while, + do, + for, + ?:, + catch, + switch, + case statements, and operators + && and || (plus one) in the body of a +constructor, method, static initializer, or instance initializer. + It is a measure of the minimum number of possible paths through the +source and therefore the number of required tests. Generally 1-4 is +considered good, 5-7 ok, 8-10 consider re-factoring, and 11+ re-factor now! + + + +Properties+
Examples++ To configure the check: + ++<module name="CyclomaticComplexity"/> ++ + To configure the check with a threshold of 7: + ++<module name="CyclomaticComplexity"> + <property name="max" value="7"/> +</module> + ++ + Package++ com.puppycrawl.tools.checkstyle.checks.metrics + + +Parent Module++ TreeWalker + + + + + |
+
+Copyright © 2002-2003 Oliver Burn. All rights Reserved. +
+ + + diff --git a/docs/index.html b/docs/index.html index 241363a9a..95729f5de 100644 --- a/docs/index.html +++ b/docs/index.html @@ -133,6 +133,7 @@