18F/dolores-landingham-slack-bot

View on GitHub
config/environments/production.rb

Summary

Maintainability
A
0 mins
Test Coverage

Block has too many lines. [28/25]
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
Severity: Minor
Found in config/environments/production.rb by rubocop

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

  config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
Severity: Minor
Found in config/environments/production.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"

There are no issues that match your filters.

Category
Status