public
Description: Code smell detector for Ruby
Home | Edit | New

Long Parameter List

A Long Parameter List occurs when a method has more than one or two parameters, or when a method yields more than one or two objects to an associated block.

Current Support in Reek

Currently Long Parameter List reports any method or block with more than 3 parameters.

Configuration

Reek’s Long Parameter List detector supports the Basic Smell Options, plus:

Option Value Effect
max_params integer The maximum number of parameters allowed in a method or block before a warning is issued. Defaults to 3.
Last edited by kevinrutherford, Tue Feb 10 13:04:49 -0800 2009
Home | Edit | New
Versions: