test_apps/rails_3_2/config/routes.rb
Line is too long. [91/80] Open
Open
# This is a legacy wild controller route that's not recommended for RESTful applications.
- Exclude checks
Line is too long. [91/80] Open
Open
# Note: This route will make all actions in every controller accessible via GET requests.
- Exclude checks
Add an empty line after magic comments. Open
Open
Rails32::Application.routes.draw do
- Read upRead up
- Exclude checks
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
Open
root to: "lists#index"
- 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"