Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

CyclomaticComplexityMethodCheck

simplabs edited this page Aug 13, 2010 · 1 revision

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