expertiza/expertiza

View on GitHub
app/models/vm_user_answer_tagging.rb

Summary

Maintainability
A
45 mins
Test Coverage
F
0%

Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  def initialize(user, percentage, no_tagged, no_not_tagged, no_tagable, tag_update_intervals)
Severity: Minor
Found in app/models/vm_user_answer_tagging.rb - About 45 mins to fix

    Avoid parameter lists longer than 5 parameters. [6/5]
    Open

      def initialize(user, percentage, no_tagged, no_not_tagged, no_tagable, tag_update_intervals)

    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

    class VmUserAnswerTagging

    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

    There are no issues that match your filters.

    Category
    Status