config/environments/production.rb
Do not use space inside array brackets. Open
Open
config.log_tags = [ :request_id ]
- Read upRead up
- Exclude checks
Checks that brackets used for array literals have or don't have surrounding space depending on configuration.
Example: EnforcedStyle: space
# The `space` style enforces that array literals have
# surrounding space.
# bad
array = [a, b, c, d]
# good
array = [ a, b, c, d ]
Example: EnforcedStyle: no_space
# The `no_space` style enforces that array literals have
# no surrounding space.
# bad
array = [ a, b, c, d ]
# good
array = [a, b, c, d]
Example: EnforcedStyle: compact
# The `compact` style normally requires a space inside
# array brackets, with the exception that successive left
# or right brackets are collapsed together in nested arrays.
# bad
array = [ a, [ b, c ] ]
# good
array = [ a, [ b, c ]]
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
Line is too long. [102/80] Open
Open
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
- Exclude checks
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
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
if ENV["RAILS_LOG_TO_STDOUT"].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. [83/80] Open
Open
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
- Exclude checks
Do not use space inside array brackets. Open
Open
config.log_tags = [ :request_id ]
- Read upRead up
- Exclude checks
Checks that brackets used for array literals have or don't have surrounding space depending on configuration.
Example: EnforcedStyle: space
# The `space` style enforces that array literals have
# surrounding space.
# bad
array = [a, b, c, d]
# good
array = [ a, b, c, d ]
Example: EnforcedStyle: no_space
# The `no_space` style enforces that array literals have
# no surrounding space.
# bad
array = [ a, b, c, d ]
# good
array = [a, b, c, d]
Example: EnforcedStyle: compact
# The `compact` style normally requires a space inside
# array brackets, with the exception that successive left
# or right brackets are collapsed together in nested arrays.
# bad
array = [ a, [ b, c ] ]
# good
array = [ a, [ b, c ]]
Line is too long. [85/80] Open
Open
# Settings specified here will take precedence over those in config/application.rb.
- Exclude checks
Line is too long. [83/80] Open
Open
# Use a real queuing backend for Active Job (and separate queues per environment)
- Exclude checks
Line is too long. [96/80] Open
Open
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
- Exclude checks