Module: RuboCop::Cop::Lint::UnusedArgument

Extended by:
Macros
Included in:
UnusedBlockArgument, UnusedMethodArgument, Style::HashEachMethods
Defined in:
lib/rubocop/cop/mixin/unused_argument.rb

Overview

Common functionality for cops handling unused arguments.

Instance Method Summary collapse

Instance Method Details

#after_leaving_scope(scope, _variable_table) ⇒ Object


10
11
12
13
14
# File 'lib/rubocop/cop/mixin/unused_argument.rb', line 10

def after_leaving_scope(scope, _variable_table)
  scope.variables.each_value do |variable|
    check_argument(variable)
  end
end