config/environments/production.rb
Block has too many lines. [28/25] Open
Open
Rails.application.configure do
config.middleware.use Rack::CanonicalHost, ENV.fetch("APPLICATION_HOST")
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. Open
Open
config.public_file_server.enabled = 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"