reevoo/sapience-rb

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

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [83/80]
Open

  # Use a real queuing backend for Active Job (and separate queues per environment)

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

  config.public_file_server.enabled = 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. [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

Extra blank line detected.
Open


  # Enable serving of images, stylesheets, and JavaScripts from an asset server.

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Line is too long. [96/80]
Open

  # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]

Line is too long. [96/80]
Open

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

Line is too long. [83/80]
Open

  # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')

Line is too long. [100/80]
Open

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

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

  if ENV["RAILS_LOG_TO_STDOUT"].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"

There are no issues that match your filters.

Category
Status