nisevi/primes_table

View on GitHub

Showing 23 of 30 total issues

Missing top-level class documentation comment.
Open

class Matrix
Severity: Minor
Found in lib/primes_table/matrix.rb by rubocop

This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Example:

# bad
class Person
  # ...
end

# good
# Description/Explanation of Person class
class Person
  # ...
end

Line is too long. [88/80]
Open

  spec.summary       = 'Prints out a multiplication table of the first N prime numbers.'
Severity: Minor
Found in primes_table.gemspec by rubocop

Freeze mutable objects assigned to constants.
Open

  VERSION = '0.1.3'
Severity: Minor
Found in lib/primes_table/version.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze
Severity
Category
Status
Source
Language