fga-gpp-mds/2017.1-Escola-X

View on GitHub

Showing 3,213 of 3,213 total issues

Use 2 (not 0) spaces for indentation.
Open

vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
Severity: Minor
Found in lib/tasks/cucumber.rake by rubocop

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

Line is too long. [84/80]
Open

      ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
Severity: Minor
Found in lib/tasks/cucumber.rake by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

gem "paperclip-dropbox", ">= 1.1.7"
Severity: Minor
Found in Gemfile by rubocop

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"

Space missing after colon.
Open

  get 'logout', to:'sessions#destroy', as:'logout'
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

Line is too long. [91/80]
Open

  put 'classroom/:id/subject/:subject_id/grades', to:'grades#post_grades', as:'post_grades'
Severity: Minor
Found in config/routes.rb by rubocop

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

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

Tab detected.
Open

    grade4 = driver.find_element(:name, 'grade[grade_04]')

(...) interpreted as grouped expression.
Open

And (/^I fill in field alumn "Matricula" with "456789"$/) 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 field "Descrição da Suspensão" with "Chutou o bebe da professora"$/) 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 "Conteúdo da Notificação" with "Muitos jogos, gincanas e aventuras"$/) 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 "Conteúdo da Notificação" with "Muitos jogos, gincanas, aventuras e divertimentos."$/) 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 press "Visualizar Suspensões" button$/) 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