Showing 121 of 137 total issues
Inconsistent indentation detected. Open
def set_judge @judge = Judge.find(params[:id]) end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Add an empty line after magic comments. Open
module Stats
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
include
is used at the top level. Use inside class
or module
. Open
include FileUtils
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Add an empty line after magic comments. Open
module Stats
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Missing magic comment # frozen_string_literal: true
. Open
if Rails.env.development? || Rails.env.test?
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Put empty method definitions on a single line. Open
def show end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Put empty method definitions on a single line. Open
def show end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use %i
or %I
for an array of symbols. Open
before_action :set_room, only: [:show, :edit, :update, :destroy]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Keep a blank line before and after private
. Open
private
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Add an empty line after magic comments. Open
module Stats
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Symbol with a boolean name - you probably meant to use true
. Open
validates :key, uniqueness: :true,
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Missing magic comment # frozen_string_literal: true
. Open
module FlashesHelper
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Put empty method definitions on a single line. Open
def edit end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Missing magic comment # frozen_string_literal: true
. Open
#!/usr/bin/env ruby
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Missing magic comment # frozen_string_literal: true
. Open
#!/usr/bin/env ruby
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Prefer using placeholder selectors (e.g. %some-placeholder) with @extend Open
@extend .container;
- Create a ticketCreate a ticket
- Exclude checks
Use %i
or %I
for an array of symbols. Open
enum scratch_type: [:discretionary, :tab]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use %i
or %I
for an array of symbols. Open
before_action :set_debater, only: [:show, :edit, :update, :destroy]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Align map
with teams.chunk { |team| team.stats.wins }.
on line 28. Open
map { |bracket| bracket[1] }
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks