Showing 3,213 of 3,213 total issues
Use 2 (not 0) spaces for indentation. Open
vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
- Read upRead up
- Exclude checks
This cops checks for indentation that doesn't use the specified number of spaces.
See also the IndentationConsistency cop which is the companion to this one.
Example:
# bad
class A
def test
puts 'hello'
end
end
# good
class A
def test
puts 'hello'
end
end
Example: IgnoredPatterns: ['^\s*module']
# bad
module A
class B
def test
puts 'hello'
end
end
end
# good
module A
class B
def test
puts 'hello'
end
end
end
Line is too long. [84/80] Open
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
gem "paperclip-dropbox", ">= 1.1.7"
- 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"
Space missing after colon. Open
get 'logout', to:'sessions#destroy', as:'logout'
- Read upRead up
- Exclude checks
Checks for colon (:) not followed by some kind of space. N.B. this cop does not handle spaces after a ternary operator, which are instead handled by Layout/SpaceAroundOperators.
Example:
# bad
def f(a:, b:2); {a:3}; end
# good
def f(a:, b: 2); {a: 3}; end
Space missing after colon. Open
post 'classrooms/:id/add_alumns', to:'classrooms#add_alumn', as:'add_alumn'
- Read upRead up
- Exclude checks
Checks for colon (:) not followed by some kind of space. N.B. this cop does not handle spaces after a ternary operator, which are instead handled by Layout/SpaceAroundOperators.
Example:
# bad
def f(a:, b:2); {a:3}; end
# good
def f(a:, b: 2); {a: 3}; end
Line is too long. [91/80] Open
put 'classroom/:id/subject/:subject_id/grades', to:'grades#post_grades', as:'post_grades'
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/suspensions/1')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/classroom/1/classroom_subjects')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/notifications/1')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/alumns')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/users')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/alumns/1/report')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/notifications/1/edit')
- Exclude checks
Tab detected. Open
grade4 = driver.find_element(:name, 'grade[grade_04]')
- Exclude checks
(...)
interpreted as grouped expression. Open
And (/^I fill in field alumn "Matricula" with "456789"$/) do
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
puts (x + y)
Example:
# good
puts(x + y)
(...)
interpreted as grouped expression. Open
And (/^I fill in field "Descrição da Suspensão" with "Chutou o bebe da professora"$/) do
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
puts (x + y)
Example:
# good
puts(x + y)
(...)
interpreted as grouped expression. Open
And (/^I fill in "Conteúdo da Notificação" with "Muitos jogos, gincanas e aventuras"$/) do
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
puts (x + y)
Example:
# good
puts(x + y)
(...)
interpreted as grouped expression. Open
And (/^I fill in "Conteúdo da Notificação" with "Muitos jogos, gincanas, aventuras e divertimentos."$/) do
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
puts (x + y)
Example:
# good
puts(x + y)
(...)
interpreted as grouped expression. Open
And (/^I press "Visualizar Suspensões" button$/) do
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
puts (x + y)
Example:
# good
puts(x + y)