vendor/jruby/1.9/gems/reek-1.6.5/lib/reek/smells/long_parameter_list.rb
def examine_context(ctx)
        @max_allowed_params = value(MAX_ALLOWED_PARAMS_KEY, ctx, DEFAULT_MAX_ALLOWED_PARAMS)
        count = ctx.exp.arg_names.length
        return [] if count <= @max_allowed_params
        [SmellWarning.new(self,
                          context: ctx.full_name,
                          lines: [ctx.exp.line],
                          message: "has #{count} parameters",
                          parameters: { count: count })]
      end
#
# Checks the number of parameters in the given method.
#
# @return [Array<SmellWarning>]
#
Checks the number of parameters in the given method.
Checks the number of parameters in the given method .
def examine_context(ctx)
        @max_allowed_params = value(MAX_ALLOWED_PARAMS_KEY, ctx, DEFAULT_MAX_ALLOWED_PARAMS)
        count = ctx.exp.arg_names.length
        return [] if count <= @max_allowed_params
        [SmellWarning.new(self,
                          context: ctx.full_name,
                          lines: [ctx.exp.line],
                          message: "has #{count} parameters",
                          parameters: { count: count })]
      end
def examine_context ( ctx ) @max_allowed_params = value ( MAX_ALLOWED_PARAMS_KEY , ctx , DEFAULT_MAX_ALLOWED_PARAMS ) count = ctx . exp . arg_names . length return [ ] if count <= @max_allowed_params [ SmellWarning . new ( self , context : ctx . full_name , lines : [ ctx . exp . line ] , message : "has #{count} parameters" , parameters : { count : count } ) ] end
Checks the number of parameters in the given method.
Checks the number of parameters in the given method .
None
Array<SmellWarning>
ctx