Showing 3,213 of 3,213 total issues
%w
-literals should be delimited by [
and ]
. Open
%w(
.ruby-version
.rbenv-vars
tmp/restart.txt
tmp/caching-dev.txt
- Read upRead up
- Exclude checks
This cop enforces the consistent usage of %
-literal delimiters.
Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.
Example:
# Style/PercentLiteralDelimiters:
# PreferredDelimiters:
# default: '[]'
# '%i': '()'
# good
%w[alpha beta] + %i(gamma delta)
# bad
%W(alpha #{beta})
# bad
%I(alpha beta)
Tab detected. Open
button_save.click
- Exclude checks
Tab detected. Open
grade4.send_keys "10.0"
- Exclude checks
Tab detected. Open
button_save = driver.find_element(:name, 'commit')
- Exclude checks
(...)
interpreted as grouped expression. Open
And (/^I fill in field parent "Endereço" with "QR 612 Conjunto 12 Casa 21"$/) 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 "Admissão" with "19082001"$/) 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 logged as alumn$/) 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 "Edit Notification Secretary" 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)
(...)
interpreted as grouped expression. Open
When (/^I press "Melhor Notificação" 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)
(...)
interpreted as grouped expression. Open
Then (/^I see information$/) 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 all alumns$/) 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 all notifications$/) 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 "Contéudo da notificação" with "To bem cansado"$/) 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 in edit page$/) 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 saved grades$/) 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
driver.get('http://localhost:3000/classroom/1/subject/1/grades')
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
turnUser.send_keys "Matutino"
- 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
strike_date.send_keys "12122012"
- 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"
Tab detected. Open
driver.get('http://localhost:3000/notifications/3')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/secretaries/new')
- Exclude checks