app/helpers/application_helper.rb
Method check_box_toggle
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_box_toggle(name, checked, elt, ifchecked, ifnotchecked, opts={})
Avoid parameter lists longer than 5 parameters. [6/5] Open
Open
def check_box_toggle(name, checked, elt, ifchecked, ifnotchecked, opts={})
- 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.