expertiza/expertiza

View on GitHub
app/models/account_request.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Missing top-level class documentation comment.
Open

class AccountRequest < ApplicationRecord
Severity: Minor
Found in app/models/account_request.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

Do not freeze immutable objects, as freezing them has no effect.
Open

  VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i.freeze
Severity: Minor
Found in app/models/account_request.rb by rubocop

This cop check for uses of Object#freeze on immutable objects.

Example:

# bad
CONST = 1.freeze

# good
CONST = 1

There are no issues that match your filters.

Category
Status