fga-gpp-mds/2017.1-Escola-X

View on GitHub

Showing 3,213 of 3,213 total issues

Tab detected.
Open

    login = driver.find_element(:name, 'login')

Tab detected.
Open

    option.send_keys "1º Médio"

Tab detected.
Open

    driver.get('http://localhost:3000/principal/2')

Tab detected.
Open

    login = driver.find_element(:name, 'login')

Tab detected.
Open

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

Tab detected.
Open

    alumn_address.send_keys "Magnífica Mansão no Pedregal"

Tab detected.
Open

    cpfUser.send_keys "46804811372"

Tab detected.
Open

    birthDate.send_keys "01011800"

Tab detected.
Open

    addressUser = driver.find_element(:name, 'teacher[address]')

Tab detected.
Open

    suspension_quantityDays = driver.find_element(:name, 'suspension[quantity_days]')

Tab detected.
Open

    suspension_quantityDays.clear()

Tab detected.
Open

    subject_name.clear()

Tab detected.
Open

    subject_name = driver.find_element(:name, 'classroom[name_classroom]')

Tab detected.
Open

    salvar = driver.find_element(:name, 'button')

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

    if ( is_principal? )

Use a guard clause instead of wrapping the code inside a conditional expression

Example:

# bad
def test
  if something
    work
  end
end

# good
def test
  return unless something
  work
end

# also good
def test
  work if something
end

# bad
if something
  raise 'exception'
else
  ok
end

# good
raise 'exception' if something
ok

Extra blank line detected.
Open


And (/^I fill in field alumn "Data de Nascimento" with "09071995"$/) do

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Use 2 (not 1) spaces for indentation.
Open

    alumn_registry = driver.find_element(:name, 'alumn[registry]')

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

    parent_address = driver.find_element(:name, 'parent[address]')

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

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/principal/2')

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