app/models/vm_user_answer_tagging.rb
Method initialize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(user, percentage, no_tagged, no_not_tagged, no_tagable, tag_update_intervals)
Avoid parameter lists longer than 5 parameters. [6/5] Open
Open
def initialize(user, percentage, no_tagged, no_not_tagged, no_tagable, tag_update_intervals)
- Read upRead up
- Exclude checks
This cop checks for methods with too many parameters. The maximum number of parameters is configurable. Keyword arguments can optionally be excluded from the total count.
Missing top-level class documentation comment. Open
Open
class VmUserAnswerTagging
- Read upRead up
- Exclude checks
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