wearefine/fae

View on GitHub

Showing 1,556 of 1,556 total issues

%w-literals should be delimited by [ and ].
Open

Rails.application.config.assets.precompile += %w( html5shiv.js html5shiv-printshiv.js )
Severity: Minor
Found in config/initializers/assets.rb by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Line is too long. [82/80]
Open

  post 'activity/filter' => 'pages#activity_log_filter', as: 'activity_log_filter'
Severity: Minor
Found in config/routes.rb by rubocop

Line is too long. [85/80]
Open

  # :failed_attempts = Locks an account after a number of failed attempts to sign in.
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Line is too long. [89/80]
Open

  # These validations are enabled in SimpleForm's internal config but disabled by default
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [93/80]
Open

  # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [83/80]
Open

  post 'form_managers/update' => 'form_managers#update', as: 'form_managers_update'
Severity: Minor
Found in config/routes.rb by rubocop

Line is too long. [85/80]
Open

  # given strategies, for example, `config.params_authenticatable = [:database]` will
Severity: Minor
Found in config/initializers/devise.rb by rubocop

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

Time::DATE_FORMATS[:default] = "%b %d, %Y %I:%M%P"
Severity: Minor
Found in config/initializers/time_formats.rb 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"

Line is too long. [83/80]
Open

  # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
Severity: Minor
Found in config/initializers/devise.rb by rubocop

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

  devise_for :users, class_name: "Fae::User", module: :devise, skip: [:sessions]
Severity: Minor
Found in config/routes.rb 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"

Line is too long. [84/80]
Open

  # :database      = Support basic authentication with authentication key + password
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Line is too long. [83/80]
Open

  # :time  = Re-enables login after a certain amount of time (see :unlock_in below)
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Line is too long. [91/80]
Open

  # in this configuration, which is recommended due to some quirks from different browsers.
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

end at 42, 1 is not aligned with CarrierWave.configure do |config| at 1, 0.
Open

 end
Severity: Minor
Found in config/initializers/carrierwave.rb by rubocop

This cop checks whether the end keywords are aligned properly for do end blocks.

Three modes are supported through the EnforcedStyleAlignWith configuration parameter:

start_of_block : the end shall be aligned with the start of the line where the do appeared.

start_of_line : the end shall be aligned with the start of the line where the expression started.

either (which is the default) : the end is allowed to be in either location. The autofixer will default to start_of_line.

Example: EnforcedStyleAlignWith: either (default)

# bad

foo.bar
   .each do
     baz
       end

# good

variable = lambda do |i|
  i
end

Example: EnforcedStyleAlignWith: startofblock

# bad

foo.bar
   .each do
     baz
       end

# good

foo.bar
  .each do
     baz
   end

Example: EnforcedStyleAlignWith: startofline

# bad

foo.bar
   .each do
     baz
       end

# good

foo.bar
  .each do
     baz
end

Final newline missing.
Open

Time::DATE_FORMATS[:filename] = "%Y%m%d%H%M%S"
Severity: Minor
Found in config/initializers/time_formats.rb by rubocop

Do not use spaces inside percent literal delimiters.
Open

Rails.application.config.assets.precompile += %w( html5shiv.js html5shiv-printshiv.js )
Severity: Minor
Found in config/initializers/assets.rb by rubocop

Checks for unnecessary additional spaces inside the delimiters of %i/%w/%x literals.

Example:

# good
%i(foo bar baz)

# bad
%w( foo bar baz )

# bad
%x(  ls -l )

Line is too long. [83/80]
Open

  # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Line is too long. [150/80]
Open

  # config.pepper = 'b7068c6232e51b4c4a2b9b695c2aeb937ea84d6a2a04576493141e9f804b5c979a664bdadf99f060d228a3cbd1953c9868916a62ea78fc50564304efd58bbb99'
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Line is too long. [85/80]
Open

  # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Line is too long. [83/80]
Open

  # You can define the class to use on all collection wrappers. Defaulting to none.
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop
Severity
Category
Status
Source
Language