Class: RuboCop::Cop::Glib::JsonUi::BaseNestedParameter
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Glib::JsonUi::BaseNestedParameter
- Extended by:
- AutoCorrector
- Defined in:
- lib/glib/rubocop/cops/json_ui/base_nested_parameter.rb
Overview
Base class for checking nested block parameter violations in JsonUi templates. Handles both parameter shadowing and incorrect usage of outer variables.
Direct Known Subclasses
Constant Summary collapse
- MSG_OUTER_VAR =
'Use the immediate block parameter `%<immediate>s` instead of outer variable `%<outer>s`.'
Instance Method Summary collapse
- #on_block(node) ⇒ Object (also: #on_numblock)
Instance Method Details
#on_block(node) ⇒ Object Also known as: on_numblock
14 15 16 |
# File 'lib/glib/rubocop/cops/json_ui/base_nested_parameter.rb', line 14 def on_block(node) check_nested_block(node) end |