| Class | Roodi::Checks::NpathComplexityCheck |
| In: |
lib/roodi/checks/npath_complexity_check.rb
|
| Parent: | Check |
Checks NPATH complexity of a node
NPATH counts acyclic execution paths in a piece of code. Here is an article by Brian A. Nejmeh that explains it in more detail: www.accessmylibrary.com/article-1G1-6242192/npath-measure-execution-path.html
| MULTIPLYING_NODE_TYPES | = | [:if, :while, :until, :for, :case] | , :when, :and, :or | |
| ADDING_NODE_TYPES | = | [:rescue] | ||
| COMPLEXITY_NODE_TYPES | = | MULTIPLYING_NODE_TYPES + ADDING_NODE_TYPES |
| complexity | [RW] |