vendor/jruby/1.9/gems/reek-1.6.5/lib/reek/smells/uncommunicative_parameter_name.rb
def examine_context(ctx)
        @reject_names = value(REJECT_KEY, ctx, DEFAULT_REJECT_SET)
        @accept_names = value(ACCEPT_KEY, ctx, DEFAULT_ACCEPT_SET)
        context_expression = ctx.exp
        context_expression.parameter_names.select do |name|
          bad_name?(name) && ctx.uses_param?(name)
        end.map do |name|
          SmellWarning.new(self,
                           context: ctx.full_name,
                           lines: [context_expression.line],
                           message: "has the parameter name '#{name}'",
                           parameters: { name: name.to_s })
        end
      end
#
# Checks the given +context+ for uncommunicative names.
#
# @return [Array<SmellWarning>]
#
Checks the given +context+ for uncommunicative names.
Checks the given + context + for uncommunicative names .
def examine_context(ctx)
        @reject_names = value(REJECT_KEY, ctx, DEFAULT_REJECT_SET)
        @accept_names = value(ACCEPT_KEY, ctx, DEFAULT_ACCEPT_SET)
        context_expression = ctx.exp
        context_expression.parameter_names.select do |name|
          bad_name?(name) && ctx.uses_param?(name)
        end.map do |name|
          SmellWarning.new(self,
                           context: ctx.full_name,
                           lines: [context_expression.line],
                           message: "has the parameter name '#{name}'",
                           parameters: { name: name.to_s })
        end
      end
def examine_context ( ctx ) @reject_names = value ( REJECT_KEY , ctx , DEFAULT_REJECT_SET ) @accept_names = value ( ACCEPT_KEY , ctx , DEFAULT_ACCEPT_SET ) context_expression = ctx . exp context_expression . parameter_names . select do | name | bad_name? ( name ) && ctx . uses_param? ( name ) end . map do | name | SmellWarning . new ( self , context : ctx . full_name , lines : [ context_expression . line ] , message : "has the parameter name '#{name}'" , parameters : { name : name . to_s } ) end end
Checks the given +context+ for uncommunicative names.
Checks the given + context + for uncommunicative names .
None
Array<SmellWarning>
ctx