fga-gpp-mds/2017.1-Escola-X

View on GitHub
config/environments/production.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not use space inside array brackets.
Open

  config.log_tags = [ :request_id ]
Severity: Minor
Found in config/environments/production.rb by rubocop

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

  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
Severity: Minor
Found in config/environments/production.rb by rubocop

Line is too long. [102/80]
Open

  # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
Severity: Minor
Found in config/environments/production.rb by rubocop

Line is too long. [100/80]
Open

  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
Severity: Minor
Found in config/environments/production.rb by rubocop

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

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

Line is too long. [83/80]
Open

  # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
Severity: Minor
Found in config/environments/production.rb by rubocop

Do not use space inside array brackets.
Open

  config.log_tags = [ :request_id ]
Severity: Minor
Found in config/environments/production.rb by rubocop

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

  # Settings specified here will take precedence over those in config/application.rb.
Severity: Minor
Found in config/environments/production.rb by rubocop

Line is too long. [83/80]
Open

  # Use a real queuing backend for Active Job (and separate queues per environment)
Severity: Minor
Found in config/environments/production.rb by rubocop

Line is too long. [96/80]
Open

  # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
Severity: Minor
Found in config/environments/production.rb by rubocop

There are no issues that match your filters.

Category
Status