Method: RuboCop::Cop::Style::OptionHash#on_args
- Defined in:
- lib/rubocop/cop/style/option_hash.rb
#on_args(node) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/rubocop/cop/style/option_hash.rb', line 30 def on_args(node) return if super_used?(node) return if allowlist.include?(node.parent.method_name.to_s) option_hash(node) { || add_offense() } end |