app/controllers/scratches_controller.rb
Showing 2 of 3 total issues
Assignment Branch Condition size for index is too high. [16.61/15] Wontfix
Wontfix
def index if params[:judge_id] @entity = Judge.find(params[:judge_id]) @scratches = Scratch.where(judge_id: params[:judge_id]) elsif params[:team_id]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Add an empty line after magic comments. Open
Open
class ScratchesController < ApplicationController
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use %i
or %I
for an array of symbols. Open
Open
before_action :set_scratch, only: [:show, :destroy]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks