class RuboCop::Cop::Metrics::AbcSize

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See c2.com/cgi/wiki?AbcMetric and en.wikipedia.org/wiki/ABC_Software_Metric.

Constants

MSG

Private Instance Methods

complexity(node) click to toggle source
# File lib/rubocop/cop/metrics/abc_size.rb, line 18
def complexity(node)
  Utils::AbcSizeCalculator.calculate(node)
end