reevoo/sapience-rb

View on GitHub
test_apps/rails_4_2/config/environments/production.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [85/80]
Open

  # Settings specified here will take precedence over those in config/application.rb.

Add an empty line after magic comments.
Open

Rails.application.configure do

Checks for a newline after the final magic comment.

Example:

# good
# frozen_string_literal: true

# Some documentation for Person
class Person
  # Some code
end

# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
  # Some code
end

Line is too long. [100/80]
Open

  # Set this to true and configure the email server for immediate delivery to raise delivery errors.

Line is too long. [96/80]
Open

  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.

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

  config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?

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. [82/80]
Open

  # Asset digests allow you to set far-future HTTP expiration dates on all assets,

Line is too long. [102/80]
Open

  # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb

There are no issues that match your filters.

Category
Status