class Simplabs::Excellent::Checks::CyclomaticComplexityBlockCheck
This check reports blocks 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¶ ↑
-
blocks
Constants
- DEFAULT_THRESHOLD