wakelank/Tinsl

View on GitHub

Showing 833 of 833 total issues

Avoid using rescue in its modifier form.
Open

    movie.actors << actor rescue nil

This cop checks for uses of rescue in its modifier form.

Example:

# bad
some_method rescue handle_error

# good
begin
  some_method
rescue
  handle_error
end

Line is too long. [90/80]
Open

# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
Severity: Minor
Found in Rakefile by rubocop

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem font-awesome-rails should appear before httparty.
Open

gem 'font-awesome-rails'
Severity: Minor
Found in Gemfile by rubocop

Gems should be alphabetically sorted within groups.

Example:

# bad
gem 'rubocop'
gem 'rspec'

# good
gem 'rspec'
gem 'rubocop'

# good
gem 'rubocop'

gem 'rspec'

# good only if TreatCommentsAsGroupSeparators is true
# For code quality
gem 'rubocop'
# For tests
gem 'rspec'

Do not suppress exceptions.
Open

rescue LoadError
Severity: Minor
Found in bin/rake by rubocop

This cop checks for rescue blocks with no body.

Example:

# bad

def some_method
  do_something
rescue
  # do nothing
end

Example:

# bad

begin
  do_something
rescue
  # do nothing
end

Example:

# good

def some_method
  do_something
rescue
  handle_exception
end

Example:

# good

begin
  do_something
rescue
  handle_exception
end

Don't use IDs in selectors.
Open

#rightcol {

Line is too long. [88/80]
Open

  if match = Bundler.default_lockfile.read.match(/^GEM$.*?^    spring \((.*?)\)$.*?^$/m)
Severity: Minor
Found in bin/spring by rubocop

Rule doesn't have all its properties in alphabetical order.
Open

a {
Severity: Minor
Found in app/assets/stylesheets/styles.css by csslint

Do not suppress exceptions.
Open

rescue LoadError
Severity: Minor
Found in bin/rails by rubocop

This cop checks for rescue blocks with no body.

Example:

# bad

def some_method
  do_something
rescue
  # do nothing
end

Example:

# bad

begin
  do_something
rescue
  # do nothing
end

Example:

# good

def some_method
  do_something
rescue
  handle_exception
end

Example:

# good

begin
  do_something
rescue
  handle_exception
end

Don't use IDs in selectors.
Open

#edit{
Severity: Minor
Found in app/assets/stylesheets/styles.css by csslint

Extra blank line detected.
Open


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
Severity: Minor
Found in Gemfile by rubocop

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Don't use IDs in selectors.
Open

#actor {
Severity: Minor
Found in app/assets/stylesheets/styles.css by csslint

Missing top-level class documentation comment.
Open

class MoviesController < ApplicationController

This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Example:

# bad
class Person
  # ...
end

# good
# Description/Explanation of Person class
class Person
  # ...
end

Extra empty line detected at block body end.
Open


end
Severity: Minor
Found in Gemfile by rubocop

This cops checks if empty lines around the bodies of blocks match the configuration.

Example: EnforcedStyle: empty_lines

# good

foo do |bar|

  # ...

end

Example: EnforcedStyle: noemptylines (default)

# good

foo do |bar|
  # ...
end
Severity
Category
Status
Source
Language