wakelank/Tinsl

View on GitHub

Showing 833 of 833 total issues

Unnecessary spacing detected.
Open

gem 'sdoc', '~> 0.4.0',          group: :doc
Severity: Minor
Found in Gemfile by rubocop

This cop checks for extra/unnecessary whitespace.

Example:

# good if AllowForAlignment is true
name      = "RuboCop"
# Some comment and an empty line

website  += "/bbatsov/rubocop" unless cond
puts        "rubocop"          if     debug

# bad for any configuration
set_app("RuboCop")
website  = "https://github.com/bbatsov/rubocop"

Use the return of the conditional for variable assignment and comparison.
Open

        if (params[:gen_title])

            @title = generate_title
        else
          @title = ""

Don't use parentheses around a method call.
Open

        if (params[:gen_title])

This cop checks for redundant parentheses.

Example:

# bad
(x) if ((y.z).nil?)

# good
x if y.z.nil?

Unnecessary spacing detected.
Open

require ::File.expand_path('../config/environment',  __FILE__)
Severity: Minor
Found in config.ru by rubocop

This cop checks for extra/unnecessary whitespace.

Example:

# good if AllowForAlignment is true
name      = "RuboCop"
# Some comment and an empty line

website  += "/bbatsov/rubocop" unless cond
puts        "rubocop"          if     debug

# bad for any configuration
set_app("RuboCop")
website  = "https://github.com/bbatsov/rubocop"

Unnecessary spacing detected.
Open

gem 'spring',        group: :development
Severity: Minor
Found in Gemfile by rubocop

This cop checks for extra/unnecessary whitespace.

Example:

# good if AllowForAlignment is true
name      = "RuboCop"
# Some comment and an empty line

website  += "/bbatsov/rubocop" unless cond
puts        "rubocop"          if     debug

# bad for any configuration
set_app("RuboCop")
website  = "https://github.com/bbatsov/rubocop"

2 trailing blank lines detected.
Open

Severity: Minor
Found in Gemfile by rubocop

Extra blank line detected.
Open



Severity: Minor
Found in app/controllers/users_controller.rb 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

Line is too long. [103/80]
Open

    params.require(:user).permit(:name, :password, :password_confirmation, :email, :email_confirmation)
Severity: Minor
Found in app/controllers/users_controller.rb by rubocop

Missing top-level class documentation comment.
Open

class UsersController < ApplicationController
Severity: Minor
Found in app/controllers/users_controller.rb by rubocop

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

Final newline missing.
Open

end
Severity: Minor
Found in app/validators/email_validator.rb by rubocop

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

  require "bundler"
Severity: Minor
Found in bin/spring by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Trailing whitespace detected.
Open

group :development, :test do 
Severity: Minor
Found in Gemfile by rubocop

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

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

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

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

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

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

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

          @title = ""

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

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

  before_action :authorize, except: [:new, :create]
Severity: Minor
Found in app/controllers/users_controller.rb by rubocop

This cop can check for array literals made up of symbols that are not using the %i() syntax.

Alternatively, it checks for symbol arrays using the %i() syntax on projects which do not want to use that syntax.

Configuration option: MinSize If set, arrays with fewer elements than this value will not trigger the cop. For example, a MinSize of3` will not enforce a style on an array of 2 or fewer elements.

Example: EnforcedStyle: percent (default)

# good
%i[foo bar baz]

# bad
[:foo, :bar, :baz]

Example: EnforcedStyle: brackets

# good
[:foo, :bar, :baz]

# bad
%i[foo bar baz]

Space inside string interpolation detected.
Open

   @results = Actor.where('name LIKE ?', "%#{ capitalize_phrase(actor) }%")

This cop checks for whitespace within string interpolations.

Example: EnforcedStyle: no_space (default)

# bad
   var = "This is the #{ space } example"

# good
   var = "This is the #{no_space} example"

Example: EnforcedStyle: space

# bad
   var = "This is the #{no_space} example"

# good
   var = "This is the #{ space } example"

Extra blank line detected.
Open


end
Severity: Minor
Found in app/controllers/users_controller.rb 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

Space inside string interpolation detected.
Open

    redirect_to "/movies/#{ movie.id }/edit"

This cop checks for whitespace within string interpolations.

Example: EnforcedStyle: no_space (default)

# bad
   var = "This is the #{ space } example"

# good
   var = "This is the #{no_space} example"

Example: EnforcedStyle: space

# bad
   var = "This is the #{no_space} example"

# good
   var = "This is the #{ space } example"
Severity
Category
Status
Source
Language