wearefine/fae

View on GitHub

Showing 1,556 of 1,556 total issues

Line is too long. [86/80]
Open

  # initial account confirmation) to be applied. Requires additional unconfirmed_email
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Extra empty line detected at block body end.
Open


 end
Severity: Minor
Found in config/initializers/carrierwave.rb 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

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

Line is too long. [82/80]
Open

  get 'form_managers/fields' => 'form_managers#fields', as: 'form_managers_fields'
Severity: Minor
Found in config/routes.rb by rubocop

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

  match '/root' => 'options#update', via: [:put, :patch]
Severity: Minor
Found in config/routes.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]

Line is too long. [87/80]
Open

  # Allow you to use another encryption algorithm besides bcrypt (default). You can use
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Line is too long. [82/80]
Open

  # change the failure app, you can configure them inside the config.warden block.
Severity: Minor
Found in config/initializers/devise.rb by rubocop

Use 2 (not 3) spaces for indentation.
Open

      config.asset_host = 'https://s3.us-west-2.amazonaws.com/fae-engine-test-fly'
Severity: Minor
Found in config/initializers/carrierwave.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

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

  match "*path" => 'pages#error404', via: [:get, :post]
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"

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

  match 'content_blocks/:slug/update' => '/admin/content_blocks#update', via: [:put, :patch], as: 'update_content_block'
Severity: Minor
Found in config/routes.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]

Line is too long. [82/80]
Open

  # Turn scoped views on. Before rendering "sessions/new", it will first check for
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

Date::DATE_FORMATS[:default] = "%b %d, %Y"
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. [120/80]
Open

  match 'content_blocks/:slug/update' => '/admin/content_blocks#update', via: [:put, :patch], as: 'update_content_block'
Severity: Minor
Found in config/routes.rb by rubocop

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

Time::DATE_FORMATS[:filename] = "%Y%m%d%H%M%S"
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"

TODO found
Open

                  / TODO: support 5th level?

TODO found
Open

# TODO - can we remove this/do we need backwards compaitibility?
Severity: Minor
Found in lib/fae/concerns/models/base.rb by fixme
Severity
Category
Status
Source
Language