Sha256: b3906e59aa6b0813db0aaaab4ae6ece0e5cc8f6b3c301c7a65506f5efc93bc7e
Contents?: true
Size: 708 Bytes
Versions: 2
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Metrics # This hint 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 # and https://en.wikipedia.org/wiki/ABC_Software_Metric. class AbcSize < Cop include MethodComplexity MSG = 'Assignment Branch Condition size for %<method>s is too high. ' \ '[%<abc_vector>s %<complexity>.4g/%<max>.4g]' private def complexity(node) Utils::AbcSizeCalculator.calculate(node) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbhint-0.87.1.rc1 | lib/rubocop/cop/metrics/abc_size.rb |
rbhint-0.85.1.rc2 | lib/rubocop/cop/metrics/abc_size.rb |