fga-gpp-mds/2017.1-Escola-X

View on GitHub

Showing 3,213 of 3,213 total issues

Space missing after colon.
Open

  get 'classrooms/:id/add_alumns', to:'classrooms#add_alumns', as:'add_alumns'
Severity: Minor
Found in config/routes.rb by rubocop

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

Space missing after colon.
Open

  post 'classrooms/:id/add_alumns', to:'classrooms#add_alumn', as:'add_alumn'
Severity: Minor
Found in config/routes.rb by rubocop

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

Space missing after colon.
Open

  get 'subjects/:id/show_subjects', to:'subjects#show_subjects', as:'show_subjects'
Severity: Minor
Found in config/routes.rb by rubocop

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

Use the new Ruby 1.9 hash syntax.
Open

  match "/500", :to => "errors#error_500", :via => :all
Severity: Minor
Found in config/routes.rb by rubocop

This cop checks hash literal syntax.

It can enforce either the use of the class hash rocket syntax or the use of the newer Ruby 1.9 syntax (when applicable).

A separate offense is registered for each problematic pair.

The supported styles are:

  • ruby19 - forces use of the 1.9 syntax (e.g. {a: 1}) when hashes have all symbols for keys
  • hash_rockets - forces use of hash rockets for all hashes
  • nomixedkeys - simply checks for hashes with mixed syntaxes
  • ruby19nomixed_keys - forces use of ruby 1.9 syntax and forbids mixed syntax hashes

Example: EnforcedStyle: ruby19 (default)

# bad
{:a => 2}
{b: 1, :c => 2}

# good
{a: 2, b: 1}
{:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol
{d: 1, 'e' => 2} # technically not forbidden

Example: EnforcedStyle: hash_rockets

# bad
{a: 1, b: 2}
{c: 1, 'd' => 5}

# good
{:a => 1, :b => 2}

Example: EnforcedStyle: nomixedkeys

# bad
{:a => 1, b: 2}
{c: 1, 'd' => 2}

# good
{:a => 1, :b => 2}
{c: 1, d: 2}

Example: EnforcedStyle: ruby19nomixed_keys

# bad
{:a => 1, :b => 2}
{c: 2, 'd' => 3} # should just use hash rockets

# good
{a: 1, b: 2}
{:c => 3, 'd' => 4}

Tab detected.
Open

    driver.get('http://localhost:3000/suspensions/1')

Tab detected.
Open

    driver.get('http://localhost:3000/notifications/1')

Tab detected.
Open

    driver.get('http://localhost:3000/alumns/1#boletim')

Tab detected.
Open

    driver.get('http://localhost:3000/alumns/1#faltas')

Tab detected.
Open

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

Tab detected.
Open

    driver.get('http://localhost:3000/teachers/4/teacher_classroom_subjects/1')

Tab detected.
Open

    driver.get('http://localhost:3000/teachers/3/teacher_classroom_subjects/1')

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

    grade1 = driver.find_element(:name, 'grade[grade_01]')

(...) interpreted as grouped expression.
Open

Given (/^I am logged in as parent$/) do

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

Given (/^I am logged in as teacher$/) do

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 "Turno" with "Integral"$/) do

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 "CPF" with "02951294174"$/) do

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 change "Turno da Turma" for "Vespertino"$/) do

Checks for space between the name of a called method and a left parenthesis.

Example:

# bad

puts (x + y)

Example:

# good

puts(x + y)
Severity
Category
Status
Source
Language