Showing 3,213 of 3,213 total issues
(...)
interpreted as grouped expression. Open
Then (/^I see suspension edited$/) 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)
Space missing after colon. Open
get 'classroom/:id/subject/:subject_id/grade/:grade_id/history', to:'grade_histories#show_history', as:'show_history'
- 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
(...)
interpreted as grouped expression. Open
Then (/^I register the secretary and I go to page secretaries$/) 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
Then (/^I see my report$/) 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
When (/^I press Sair 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)
Space missing after colon. Open
get 'teachers/:id/teacher_classrooms', to:'teachers#teacher_classrooms', as:'teacher_classrooms'
- 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
(...)
interpreted as grouped expression. Open
Then (/^I see your report$/) 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 click in "Salvar" 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)
Tab detected. Open
notification_title_edit = driver.find_element(:name, 'notification[title]')
- Exclude checks
Use snake_case for variable names. Open
turnUser = driver.find_element(:name, 'secretary[shift]')
- Read upRead up
- Exclude checks
This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.
Example: EnforcedStyle: snake_case (default)
# bad
fooBar = 1
# good
foo_bar = 1
Example: EnforcedStyle: camelCase
# bad
foo_bar = 1
# good
fooBar = 1
(...)
interpreted as grouped expression. Open
When (/^I choose "Descubra" notification$/) 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)
Use snake_case for variable names. Open
matriculaUser = driver.find_element(:name, 'teacher[registry]')
- Read upRead up
- Exclude checks
This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.
Example: EnforcedStyle: snake_case (default)
# bad
fooBar = 1
# good
foo_bar = 1
Example: EnforcedStyle: camelCase
# bad
foo_bar = 1
# good
fooBar = 1
Line is too long. [85/80] Open
post 'subjects/:id/add_classrooms', to:'subjects#add_classroom', as:'add_classroom'
- Exclude checks
(...)
interpreted as grouped expression. Open
And (/^I click in "Delete" 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)
Line is too long. [82/80] Open
suspension_quantityDays = driver.find_element(:name, 'suspension[quantity_days]')
- Exclude checks
Do not use parentheses for method calls with no arguments. Open
subject_name.clear()
- Read upRead up
- Exclude checks
This cop checks for unwanted parentheses in parameterless method calls.
Example:
# bad
object.some_method()
# good
object.some_method
Line is too long. [88/80] Open
And (/^I fill in field "Descrição da Suspensão" with "Chutou o bebe da professora"$/) do
- Exclude checks
Tab detected. Open
notification_title_edit.send_keys "SOU UM FRACASSO"
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
senha.send_keys "12345678"
- 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"
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
turnUser.send_keys "Integral"
- 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"