class RuboCop::Cop::Metrics::AbcSize
and en.wikipedia.org/wiki/ABC_Software_Metric.
(method calls), and conditions. See c2.com/cgi/wiki?AbcMetric<br>configured maximum. The ABC size is based on assignments, branches
This cop checks that the ABC size of methods is not higher than the
def complexity(node)
def complexity(node) Utils::AbcSizeCalculator.calculate(node) end