BenMusch/nu-tab

View on GitHub

Showing 121 of 137 total issues

Inconsistent indentation detected.
Open

def set_judge
@judge = Judge.find(params[:id])
end

Add an empty line after magic comments.
Open

module Stats

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

spring = lockfile.specs.detect { |spec| spec.name == "spring" }
Severity: Minor
Found in bin/spring by rubocop

include is used at the top level. Use inside class or module.
Open

include FileUtils
Severity: Minor
Found in bin/update by rubocop

Add an empty line after magic comments.
Open

module Stats
Severity: Minor
Found in app/policies/stats/round.rb by rubocop

Missing magic comment # frozen_string_literal: true.
Open

if Rails.env.development? || Rails.env.test?
Severity: Minor
Found in lib/tasks/dev.rake by rubocop

Put empty method definitions on a single line.
Open

def show
end

Put empty method definitions on a single line.
Open

def show
end
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Use %i or %I for an array of symbols.
Open

before_action :set_room, only: [:show, :edit, :update, :destroy]
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Keep a blank line before and after private.
Open

private

Add an empty line after magic comments.
Open

module Stats

Symbol with a boolean name - you probably meant to use true.
Open

validates :key, uniqueness: :true,
Severity: Minor
Found in app/models/tournament_setting.rb by rubocop

Missing magic comment # frozen_string_literal: true.
Open

module FlashesHelper
Severity: Minor
Found in app/helpers/flashes_helper.rb by rubocop

Put empty method definitions on a single line.
Open

def edit
end
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Missing magic comment # frozen_string_literal: true.
Open

#!/usr/bin/env ruby
Severity: Minor
Found in bin/rspec by rubocop

Missing magic comment # frozen_string_literal: true.
Open

#!/usr/bin/env ruby
Severity: Minor
Found in bin/bundle by rubocop

Prefer using placeholder selectors (e.g. %some-placeholder) with @extend
Open

@extend .container;

Use %i or %I for an array of symbols.
Open

enum scratch_type: [:discretionary, :tab]
Severity: Minor
Found in app/models/scratch.rb by rubocop

Use %i or %I for an array of symbols.
Open

before_action :set_debater, only: [:show, :edit, :update, :destroy]

Align map with teams.chunk { |team| team.stats.wins }. on line 28.
Open

map { |bracket| bracket[1] }
Severity
Category
Status
Source
Language