RuboCop::Cop
This cop checks for methods with too many parameters. The maximum number of parameters in configurable. On Ruby 2.0+ keyword arguments can optionally be excluded from the total count.
# File lib/rubocop/cop/style/parameter_lists.rb, line 14 def on_args(node) count = args_count(node) return unless count > max_params add_offense(node, :expression, format(MSG, max_params)) do self.max = count end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.