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.

Methods

Constants

ASSIGNMENTS = [:lasgn]
BRANCHES = [:vcall, :call]
CONDITIONS = [:==, :"!=", :<=, :>=, :<, :>]
OPERATORS = [:*, :/, :%, :+, :<<, :>>, :&, :|, :^]
DEFAULT_SCORE = 10

Attributes

score  [RW] 

Public Class methods

Public Instance methods

[Validate]