fga-gpp-mds/2017.1-Escola-X

View on GitHub

Showing 3,213 of 3,213 total issues

Tab detected.
Open

    subject_name = driver.find_element(:name, 'notification[motive]')

Tab detected.
Open

    driver.get('http://localhost:3000/users')

Use 2 (not 1) spaces for indentation.
Open

    driver.get('http://localhost:3000/alumns/4')

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')

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')

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')

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

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"

Tab detected.
Open

    alumn_address = driver.find_element(:name, 'alumn[address]')

Tab detected.
Open

    nameUser = driver.find_element(:name, 'secretary[name]')

Tab detected.
Open

    admissionDate.send_keys "09072005"

Tab detected.
Open

    suspension_title.send_keys 'Bater na Professora'

Tab detected.
Open

    suspension_description = driver.find_element(:name, 'suspension[description]')

Tab detected.
Open

                    flash[:success] = "Matéria adicionada com sucesso"

Tab detected.
Open

    suspension_date.send_keys '12121912'

Tab detected.
Open

    subject_name = driver.find_element(:name, 'notification[title]')

Don't use parentheses around the condition of an if.
Open

              if ( @subject.save )

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]')

Don't use parentheses around the condition of an if.
Open

    if ( is_principal? )

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')
Severity
Category
Status
Source
Language