rdavid1099/poke-api-v2

View on GitHub
lib/poke_api/move/move_meta_data.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Assignment Branch Condition size for initialize is too high. [18.44/15]
Open

      def initialize(data)
        @ailment = MoveAilment.new(data[:ailment])
        @category = MoveCategory.new(data[:category])
        @min_hits = data[:min_hits]
        @max_hits = data[:max_hits]
Severity: Minor
Found in lib/poke_api/move/move_meta_data.rb by rubocop

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

      def initialize(data)
        @ailment = MoveAilment.new(data[:ailment])
        @category = MoveCategory.new(data[:category])
        @min_hits = data[:min_hits]
        @max_hits = data[:max_hits]
Severity: Minor
Found in lib/poke_api/move/move_meta_data.rb by rubocop

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.

There are no issues that match your filters.

Category
Status