armandofox/audience1st

View on GitHub
app/helpers/application_helper.rb

Summary

Maintainability
A
45 mins
Test Coverage
A
91%

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

  def check_box_toggle(name, checked, elt, ifchecked, ifnotchecked, opts={})
Severity: Minor
Found in app/helpers/application_helper.rb - About 45 mins to fix

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

      def check_box_toggle(name, checked, elt, ifchecked, ifnotchecked, opts={})
    Severity: Minor
    Found in app/helpers/application_helper.rb by rubocop

    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.

    There are no issues that match your filters.

    Category
    Status