Sha256: e85f6e76a8bb409ef6e11b776ea941e0101c274be6a1d39cf3f165eee81b814b
Contents?: true
Size: 636 Bytes
Versions: 12
Compression:
Stored size: 636 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Metrics # 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 http://c2.com/cgi/wiki?AbcMetric class AbcSize < Cop include MethodComplexity MSG = 'Assignment Branch Condition size for %<method>s is too high. ' \ '[%<complexity>.4g/%<max>.4g]'.freeze private def complexity(node) Utils::AbcSizeCalculator.calculate(node) end end end end end
Version data entries
12 entries across 10 versions & 2 rubygems