| Class | Roodi::Checks::AbcMetricMethodCheck |
| In: |
lib/roodi/checks/abc_metric_method_check.rb
|
| Parent: | Check |
The ABC metric method check calculates the number of Assignments, Branches and Conditionals in your code. It is similar to cyclomatic complexity, so the lower the better.
| ASSIGNMENTS | = | [:lasgn] |
| BRANCHES | = | [:vcall, :call] |
| CONDITIONS | = | [:==, :"!=", :<=, :>=, :<, :>] |
| OPERATORS | = | [:*, :/, :%, :+, :<<, :>>, :&, :|, :^] |
| DEFAULT_SCORE | = | 10 |
| score | [RW] |