lib/spoom/deadcode/plugins/active_support.rb in spoom-1.3.2 vs lib/spoom/deadcode/plugins/active_support.rb in spoom-1.3.3
- old
+ new
@@ -3,11 +3,11 @@
module Spoom
module Deadcode
module Plugins
class ActiveSupport < Base
- ignore_classes_inheriting_from(/^(::)?ActiveSupport::TestCase$/)
+ ignore_classes_inheriting_from("ActiveSupport::TestCase")
ignore_methods_named(
"after_all",
"after_setup",
"after_teardown",
@@ -16,15 +16,15 @@
"before_teardown",
)
SETUP_AND_TEARDOWN_METHODS = T.let(["setup", "teardown"], T::Array[String])
- sig { override.params(indexer: Indexer, send: Send).void }
- def on_send(indexer, send)
+ sig { override.params(send: Send).void }
+ def on_send(send)
return unless send.recv.nil? && SETUP_AND_TEARDOWN_METHODS.include?(send.name)
send.each_arg(Prism::SymbolNode) do |arg|
- indexer.reference_method(T.must(arg.value), send.node)
+ @index.reference_method(T.must(arg.value), send.location)
end
end
end
end
end