class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator
def compound_assignment(node)
def compound_assignment(node) # Methods setter can not be detected for multiple assignments # and shorthand assigns, so we'll count them here instead children = node.masgn_type? ? node.children[0].children : node.children will_be_miscounted = children.count do |child| child.respond_to?(:setter_method?) && !child.setter_method? end @assignment += will_be_miscounted false end