Showing 57 of 106 total issues
Line is too long. [87/80] Open
Open
format.html { redirect_to @rating, notice: 'Rating was successfully updated.' }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [82/80] Open
Open
format.json { render json: @rating.errors, status: :unprocessable_entity }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [87/80] Open
Open
format.html { redirect_to gears_url, notice: 'Gear was successfully destroyed.' }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [98/80] Open
Open
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
- 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. [100/80] Open
Open
format.html { redirect_to hunter_path(@hunter), notice: 'Hunter was successfully created.' }
- 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. [82/80] Open
Open
# @see HuntersController#hunter_params See hunter_params for accepted parameters
- Create a ticketCreate a ticket
- Exclude checks
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. [82/80] Open
Open
format.json { render json: @hunter.errors, status: :unprocessable_entity }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [87/80] Open
Open
# This script is a way to setup or update your development environment automatically.
- Create a ticketCreate a ticket
- Exclude checks
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. [110/80] Open
Open
redirect_to hunter_hunters_improvements_url, notice: 'Hunters improvement was successfully destroyed.'
- 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
Line is too long. [83/80] Open
Open
format.html { redirect_to @gear, notice: 'Gear was successfully updated.' }
- 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. [95/80] Open
Open
format.json { render json: @hunters_improvement.errors, status: :unprocessable_entity }
- Create a ticketCreate a ticket
- Exclude checks