app/models/hunter.rb
Line is too long. [90/80] Open
Open
validates :harm, numericality: { less_than_or_equal_to: 7, greater_than_or_equal_to: 0 }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [97/80] Open
Open
validates :luck, numericality: { less_than_or_equal_to: MAX_LUCK, greater_than_or_equal_to: 0 }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [119/80] Open
Open
obj[:value]&.map { |h_improv| h_improv.errors.full_messages.to_sentence }&.join(', ')
- Create a ticketCreate a ticket
- Exclude checks
Prefer has_many :through
to has_and_belongs_to_many
. Open
Open
has_and_belongs_to_many :gears, join_table: :hunters_gears
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for the use of the hasandbelongstomany macro.
Example:
# bad
# has_and_belongs_to_many :ingredients
# good
# has_many :ingredients, through: :recipe_ingredients