Class: Rubocop::Cop::WithoutReactiveCache
- Inherits:
-
RuboCop::Cop::Base
- Object
- RuboCop::Cop::Base
- Rubocop::Cop::WithoutReactiveCache
- Defined in:
- lib/rubocop/cop/without_reactive_cache.rb
Overview
Cop that prevents the use of ‘without_reactive_cache`
Constant Summary collapse
- MSG =
'without_reactive_cache is for debugging purposes only. Please use with_reactive_cache.'
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
9 10 11 12 13 |
# File 'lib/rubocop/cop/without_reactive_cache.rb', line 9 def on_send(node) return unless node.children[1] == :without_reactive_cache add_offense(node.loc.selector) end |