Showing 3,213 of 3,213 total issues
Tab detected. Open
subject_name = driver.find_element(:name, 'notification[motive]')
- Exclude checks
Tab detected. Open
driver.get('http://localhost:3000/users')
- Exclude checks
Use 2 (not 1) spaces for indentation. Open
driver.get('http://localhost:3000/alumns/4')
- 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
Use 2 (not 1) spaces for indentation. Open
driver.get('http://localhost:3000/teachers/3')
- 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
Use 2 (not 1) spaces for indentation. Open
driver.get('http://localhost:3000/alumns/1/report')
- 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
Use 2 (not 1) spaces for indentation. Open
button_save = driver.find_element(:name, 'button')
- 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
Missing space after #
. Open
##Alumn options
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Tab detected. Open
senha.send_keys "12345678"
- Exclude checks
Tab detected. Open
alumn_address = driver.find_element(:name, 'alumn[address]')
- Exclude checks
Tab detected. Open
nameUser = driver.find_element(:name, 'secretary[name]')
- Exclude checks
Tab detected. Open
admissionDate.send_keys "09072005"
- Exclude checks
Tab detected. Open
suspension_title.send_keys 'Bater na Professora'
- Exclude checks
Tab detected. Open
suspension_description = driver.find_element(:name, 'suspension[description]')
- Exclude checks
Tab detected. Open
flash[:success] = "Matéria adicionada com sucesso"
- Exclude checks
Tab detected. Open
suspension_date.send_keys '12121912'
- Exclude checks
Tab detected. Open
subject_name = driver.find_element(:name, 'notification[title]')
- Exclude checks
Don't use parentheses around the condition of an if
. Open
if ( @subject.save )
- Read upRead up
- Exclude checks
This cop checks for the presence of superfluous parentheses around the condition of if/unless/while/until.
Example:
# bad
x += 1 while (x < 10)
foo unless (bar || baz)
if (x > 10)
elsif (x < 3)
end
# good
x += 1 while x < 10
foo unless bar || baz
if x > 10
elsif x < 3
end
Tab detected. Open
subject_name = driver.find_element(:name, 'notification[notification_text]')
- Exclude checks
Don't use parentheses around the condition of an if
. Open
if ( is_principal? )
- Read upRead up
- Exclude checks
This cop checks for the presence of superfluous parentheses around the condition of if/unless/while/until.
Example:
# bad
x += 1 while (x < 10)
foo unless (bar || baz)
if (x > 10)
elsif (x < 3)
end
# good
x += 1 while x < 10
foo unless bar || baz
if x > 10
elsif x < 3
end
Tab detected. Open
driver.get('http://localhost:3000/alumns/1/suspensions/new')
- Exclude checks