fga-gpp-mds/2017.1-Escola-X

View on GitHub
app/models/grade.rb

Summary

Maintainability
A
0 mins
Test Coverage

Missing space after #.
Open

#Description: Validates alumn's grade attributes
Severity: Minor
Found in app/models/grade.rb by rubocop

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

    belongs_to :subject
Severity: Minor
Found in app/models/grade.rb by rubocop

Tab detected.
Open

    has_many :grade_histories
Severity: Minor
Found in app/models/grade.rb by rubocop

Tab detected.
Open

    belongs_to :alumn
Severity: Minor
Found in app/models/grade.rb by rubocop

Missing space after #.
Open

#File name: grade.rb
Severity: Minor
Found in app/models/grade.rb by rubocop

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

Missing space after #.
Open

#Class name: Grade
Severity: Minor
Found in app/models/grade.rb by rubocop

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

Use 2 (not 1) spaces for indentation.
Open

    belongs_to :subject
Severity: Minor
Found in app/models/grade.rb 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

Tab detected.
Open

    belongs_to :classroom
Severity: Minor
Found in app/models/grade.rb by rubocop

There are no issues that match your filters.

Category
Status