BenMusch/nu-tab

View on GitHub

Showing 121 of 137 total issues

Missing magic comment # frozen_string_literal: true.
Open

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

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

desc "Sample data for local development environment"
Severity: Minor
Found in lib/tasks/dev.rake by rubocop

Rule declaration should be followed by an empty line
Open

}

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

@extend .btn-primary;

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

enum result: [:gov_win, :opp_win, :gov_forfeit, :opp_forfeit, :all_drop, :all_win]
Severity: Minor
Found in app/models/round.rb by rubocop

Put empty method definitions on a single line.
Open

def show
end

Add an empty line after magic comments.
Open

class RoomsController < ApplicationController
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Add an empty line after magic comments.
Open

module Stats

Add an empty line after magic comments.
Open

module Stats

Missing magic comment # frozen_string_literal: true.
Open

# Add your own tasks in files placed in lib/tasks ending in .rake,
Severity: Minor
Found in Rakefile by rubocop

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

@extend .row;

Add an empty line after magic comments.
Open

module Rankable
Severity: Minor
Found in app/models/concerns/rankable.rb by rubocop

Put empty method definitions on a single line.
Open

def edit
end

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

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

Add an empty line after magic comments.
Open

module Stats

Align the operands of a condition in an if statement spanning multiple lines.
Open

JudgePolicy.new(judge, round.opp_team).conflicted?

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

task prime: "db:setup" do
Severity: Minor
Found in lib/tasks/dev.rake by rubocop

Rule declaration should be followed by an empty line
Open

}

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

flash.to_hash.slice("alert", "error", "notice", "success")
Severity: Minor
Found in app/helpers/flashes_helper.rb by rubocop

Add an empty line after magic comments.
Open

class ScratchesController < ApplicationController
Severity
Category
Status
Source
Language