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.'
- RESTRICT_ON_SEND =
%i[without_reactive_cache].freeze
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
11 12 13 |
# File 'lib/rubocop/cop/without_reactive_cache.rb', line 11 def on_send(node) add_offense(node.loc.selector) end |