reevoo/sapience-rb

View on GitHub
test_apps/rails_3_2/config/initializers/secret_token.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after magic comments.
Open

# Be sure to restart your server when you modify this file.

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

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

Rails32::Application.config.secret_token = "3c7eb4b1865b956f96b875992e713105066af4aa75c4e9c9b0a6f8db935a8efa6dca3a23d2687e7d0f34704d01c3ac3cd8cdda7942b3ca3383e96a260d07d2cd" # rubocop:disable LineLength

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