atzorvas/ccradio

View on GitHub

Showing 218 of 218 total issues

Extra empty line detected at class body end.
Open

 
end
Severity: Minor
Found in app/models/stream.rb by rubocop

Do not prefix reader method names with get_.
Open

def get_url_status
Severity: Minor
Found in app/models/stream.rb by rubocop

Use def with parentheses when there are parameters.
Open

def get_current_song doc
Severity: Minor
Found in app/models/stream.rb by rubocop

Redundant self detected.
Open

URI.join(self.server, self.mount).to_s
Severity: Minor
Found in app/models/stream.rb by rubocop

Do not use when x;. Use when x then instead.
Open

when :alert; 'alert-warning'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Line is too long. [82/80]
Open

format.json { render json: @stream.errors, status: :unprocessable_entity }

Use the new Ruby 1.9 hash syntax.
Open

:omniauthable, :omniauth_providers => [:wordpress_hosted]
Severity: Minor
Found in app/models/user.rb by rubocop

Use def with parentheses when there are parameters.
Open

def bootstrap_class_for flash_type
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Do not use when x;. Use when x then instead.
Open

when :success; 'alert-success'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Line is too long. [87/80]
Open

format.html { redirect_to @stream, notice: 'Stream was successfully created.' }

Do not use when x;. Use when x then instead.
Open

when :notice; 'alert-info'
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Line is too long. [92/80]
Open

redirect_to root_path, alert: 'Access Denied' unless current_user && current_user.admin?

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

assert_equal bootstrap_class_for("other"), "other"

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

Redis.new.publish "songs", m

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

session["devise.wordpress_hosted_data"] = request.env["omniauth.auth"]

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

only: [:show, :edit, :update, :destroy, :playlist, :current_song]

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

assert_equal bootstrap_class_for("success"), "alert-success"

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem foreman should appear before puma.
Open

gem 'foreman'
Severity: Minor
Found in Gemfile by rubocop

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem sidekiq-scheduler should appear before sinatra.
Open

gem 'sidekiq-scheduler'
Severity: Minor
Found in Gemfile by rubocop

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem devise-async should appear before sidekiq-scheduler.
Open

gem 'devise-async'
Severity: Minor
Found in Gemfile by rubocop
Severity
Category
Status
Source
Language