lib/poke_api/move/move_meta_data.rb
Assignment Branch Condition size for initialize is too high. [18.44/15] Open
Open
def initialize(data)
@ailment = MoveAilment.new(data[:ailment])
@category = MoveCategory.new(data[:category])
@min_hits = data[:min_hits]
@max_hits = data[:max_hits]
- Read upRead up
- Exclude checks
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
Method has too many lines. [12/10] Open
Open
def initialize(data)
@ailment = MoveAilment.new(data[:ailment])
@category = MoveCategory.new(data[:category])
@min_hits = data[:min_hits]
@max_hits = data[:max_hits]
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.