test_apps/rails_4_2/config/environments/production.rb
Line is too long. [85/80] Open
Open
# Settings specified here will take precedence over those in config/application.rb.
- Exclude checks
Add an empty line after magic comments. Open
Open
Rails.application.configure do
- Read upRead up
- Exclude checks
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
Open
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
- Exclude checks
Line is too long. [96/80] Open
Open
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
- Read upRead up
- Exclude checks
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
Open
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
- Exclude checks
Line is too long. [102/80] Open
Open
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
- Exclude checks