Showing 57 of 106 total issues
Line is too long. [114/80] Open
Open
json.available_improvements hunter.available_improvements, partial: 'improvements/improvement', as: :improvement
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [105/80] Open
Open
redirect_to hunter_hunters_improvement_url(hunter_id: @hunter.id, id: @hunters_improvement.id),
- 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
Line is too long. [92/80] Open
Open
# @param playbook_id [Integer] References the id of the Playbook in the the Playbook table
- 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. [83/80] Open
Open
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
- 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
Line is too long. [93/80] Open
Open
params.require(:gear).permit(:name, :description, :harm, :armor, :playbook_id, :tag_list)
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [109/80] Open
Open
location: hunter_hunters_improvement_url(hunter_id: @hunter.id, id: @hunters_improvement.id)
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [109/80] Open
Open
location: hunter_hunters_improvement_url(hunter_id: @hunter.id, id: @hunters_improvement.id)
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [95/80] Open
Open
# This script is idempotent, so that you can run it at anytime and get an expectable outcome.
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [82/80] Open
Open
format.json { render json: @hunter.errors, status: :unprocessable_entity }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [91/80] Open
Open
format.html { redirect_to hunters_url, notice: 'Hunter was successfully destroyed.' }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [87/80] Open
Open
format.json { render json: @improvement.errors, status: :unprocessable_entity }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [82/80] Open
Open
# Most jobs are safe to ignore if the underlying records are no longer available
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [112/80] Open
Open
json.array! @hunters_improvements, partial: 'hunters_improvements/hunters_improvement', as: :hunters_improvement
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [100/80] Open
Open
format.html { redirect_to hunter_path(@hunter), notice: 'Hunter was successfully created.' }
- Create a ticketCreate a ticket
- Exclude checks