Class: Deprecool::Finders::Rails::V8_2_0::RedisCacheStoreDefaultRedisOptions
- Inherits:
-
Deprecool::Finder
- Object
- Deprecool::Finder
- Deprecool::Finders::Rails::V8_2_0::RedisCacheStoreDefaultRedisOptions
- Defined in:
- lib/deprecool/finders/rails/v8.2.0/redis_cache_store_default_redis_options.rb
Instance Attribute Summary
Attributes inherited from Deprecool::Finder
Instance Method Summary collapse
-
#on_constant_path_node(node) ⇒ Object
a constant_path is like: ActiveSupport::Cache::RedisCacheStore::DEFAULT_REDIS_OPTIONS.
-
#on_constant_read_node(node) ⇒ Object
constant_read is any constant, like
Foo.
Methods inherited from Deprecool::Finder
affected_version_range, classname, effort, hook_methods, id, inherited, #initialize
Methods included from PrismHelpers
#unwrap_arguments, #unwrap_array, #unwrap_children, #unwrap_class, #unwrap_parentheses
Constructor Details
This class inherits a constructor from Deprecool::Finder
Instance Method Details
#on_constant_path_node(node) ⇒ Object
a constant_path is like: ActiveSupport::Cache::RedisCacheStore::DEFAULT_REDIS_OPTIONS
25 26 27 28 29 |
# File 'lib/deprecool/finders/rails/v8.2.0/redis_cache_store_default_redis_options.rb', line 25 def on_constant_path_node(node) return unless node.name == :DEFAULT_REDIS_OPTIONS add_offense(node, confidence: :high) end |
#on_constant_read_node(node) ⇒ Object
constant_read is any constant, like Foo
18 19 20 21 22 |
# File 'lib/deprecool/finders/rails/v8.2.0/redis_cache_store_default_redis_options.rb', line 18 def on_constant_read_node(node) return unless node.name == :DEFAULT_REDIS_OPTIONS add_offense(node, confidence: :high) end |