class Simplabs::Excellent::Checks::CyclomaticComplexityMethodCheck
This check reports methods with a cyclomatic complexity metric score that is higher than the threshold. The cyclomatic complexity metric counts the number of linearly independent paths through the code. This is basically the number of the following statements + 1:
-
if
-
else
-
unless
-
while
-
until
-
for
-
rescue
-
case
-
when
-
and
-
or
Applies to¶ ↑
-
methods
Constants
- DEFAULT_THRESHOLD