vendor/jruby/1.9/gems/reek-1.6.5/lib/reek/smells/unused_parameters.rb
#
# Checks whether the given method has any unused parameters.
#
# @return [Array<SmellWarning>]
#
Checks whether the given method has any unused parameters.
Checks whether the given method has any unused parameters .
def examine_context(method_ctx)
        return [] if method_ctx.uses_super_with_implicit_arguments?
        method_ctx.unused_params.map do |param|
          SmellWarning.new(self,
                           context: method_ctx.full_name,
                           lines: [method_ctx.exp.line],
                           message: "has unused parameter '#{param.name}'",
                           parameters: { name: param.name.to_s })
        end
      end
def examine_context ( method_ctx ) return [ ] if method_ctx . uses_super_with_implicit_arguments? method_ctx . unused_params . map do | param | SmellWarning . new ( self , context : method_ctx . full_name , lines : [ method_ctx . exp . line ] , message : "has unused parameter '#{param.name}'" , parameters : { name : param . name . to_s } ) end end
Checks whether the given method has any unused parameters.
Checks whether the given method has any unused parameters .
None
Array<SmellWarning>
method_ctx