Showing 19 of 19 total issues
Method has too many lines. [15/10] Open
def subscription hijack do |sock| redis_thread = Thread.new do Redis.new.subscribe "songs" do |on| on.message do |_channel, song|
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Align the parameters of a method call if they span more than one line. Open
except: [:show, :index, :playlist, :current_song, :subscription]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [87/80] Open
format.html { redirect_to @stream, notice: 'Stream was successfully updated.' }
- Create a ticketCreate a ticket
- Exclude checks
Align the parameters of a method call if they span more than one line. Open
only: [:show, :edit, :update, :destroy, :playlist, :current_song]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [83/80] Open
format.json { render json: { song: item.song, created_at: item.created_at } }
- Create a ticketCreate a ticket
- Exclude checks
Line is too long. [91/80] Open
format.html { redirect_to streams_url, notice: 'Stream was successfully destroyed.' }
- Create a ticketCreate a ticket
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Redis.new.publish "songs", m
- 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
Line is too long. [82/80] Open
format.json { render json: @stream.errors, status: :unprocessable_entity }
- Create a ticketCreate a ticket
- Exclude checks
Missing top-level class documentation comment. Open
class StreamsController < ApplicationController
- 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
Line is too long. [87/80] Open
format.html { redirect_to @stream, notice: 'Stream was successfully created.' }
- 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
Line is too long. [82/80] Open
format.json { render json: @stream.errors, status: :unprocessable_entity }
- Create a ticketCreate a ticket
- Exclude checks
Avoid using {...}
for multi-line blocks. Open
format.json {
- 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
Redis.new.subscribe "songs" do |on|
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use %i
or %I
for an array of symbols. Open
except: [:show, :index, :playlist, :current_song, :subscription]
- 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
history: @stream.playlist_items.order("created_at DESC")
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use %i
or %I
for an array of symbols. Open
only: [:show, :edit, :update, :destroy, :playlist, :current_song]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks