Class: RuboCop::Cop::EightyFourCodes::ShellEscape
- Defined in:
- lib/rubocop/cop/eighty_four_codes/shell_escape.rb
Overview
TODO: Write cop description and example of bad / good code. For every ‘SupportedStyle` and unique configuration, there needs to be examples. Examples must have valid Ruby syntax. Do not use upticks.
Constant Summary collapse
- MSG =
TODO: Implement the cop in here.
In many cases, you can use a node matcher for matching node pattern. See github.com/rubocop-hq/rubocop/blob/master/lib/rubocop/node_pattern.rb
For example
'Use `#good_method` instead of `#bad_method`.'.freeze
Constants inherited from Cop
Constants included from EightyFourCodes::Language
EightyFourCodes::Language::ALL
Instance Method Summary collapse
Methods inherited from Cop
Instance Method Details
#on_send(node) ⇒ Object
54 55 56 57 58 |
# File 'lib/rubocop/cop/eighty_four_codes/shell_escape.rb', line 54 def on_send(node) return unless bad_method?(node) add_offense(node) end |