ChaelCodes/HuntersKeepers

View on GitHub

Showing 57 of 106 total issues

Line is too long. [87/80]
Open

        format.html { redirect_to @rating, notice: 'Rating was successfully updated.' }

Line is too long. [82/80]
Open

        format.json { render json: @rating.errors, status: :unprocessable_entity }

Line is too long. [87/80]
Open

      format.html { redirect_to gears_url, notice: 'Gear was successfully destroyed.' }
Severity: Minor
Found in app/controllers/gears_controller.rb by rubocop

Line is too long. [98/80]
Open

  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
Severity: Minor
Found in Gemfile by rubocop

Line is too long. [119/80]
Open

                                  obj[:value]&.map { |h_improv| h_improv.errors.full_messages.to_sentence }&.join(', ')
Severity: Minor
Found in app/models/hunter.rb by rubocop

Line is too long. [100/80]
Open

        format.html { redirect_to hunter_path(@hunter), notice: 'Hunter was successfully created.' }

Prefer has_many :through to has_and_belongs_to_many.
Open

  has_and_belongs_to_many :gears, join_table: :hunters_gears
Severity: Minor
Found in app/models/hunter.rb by rubocop

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

  # @see HuntersController#hunter_params See hunter_params for accepted parameters

Line is too long. [114/80]
Open

  json.available_improvements hunter.available_improvements, partial: 'improvements/improvement', as: :improvement

Line is too long. [82/80]
Open

        format.json { render json: @hunter.errors, status: :unprocessable_entity }

Line is too long. [87/80]
Open

  # This script is a way to setup or update your development environment automatically.
Severity: Minor
Found in bin/setup by rubocop

Line is too long. [93/80]
Open

    params.require(:gear).permit(:name, :description, :harm, :armor, :playbook_id, :tag_list)
Severity: Minor
Found in app/controllers/gears_controller.rb by rubocop

Line is too long. [110/80]
Open

        redirect_to hunter_hunters_improvements_url, notice: 'Hunters improvement was successfully destroyed.'

Line is too long. [83/80]
Open

  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
Severity: Minor
Found in Gemfile by rubocop

Line is too long. [83/80]
Open

        format.html { redirect_to @gear, notice: 'Gear was successfully updated.' }
Severity: Minor
Found in app/controllers/gears_controller.rb by rubocop

Line is too long. [105/80]
Open

          redirect_to hunter_hunters_improvement_url(hunter_id: @hunter.id, id: @hunters_improvement.id),

Line is too long. [95/80]
Open

        format.json { render json: @hunters_improvement.errors, status: :unprocessable_entity }
Severity
Category
Status
Source
Language