lib/packwerk/node_processor.rb in packwerk-1.1.2 vs lib/packwerk/node_processor.rb in packwerk-1.1.3

- old
+ new

@@ -23,10 +23,11 @@ @reference_lister = reference_lister @filename = filename @checkers = checkers end - def call(node, ancestors:) + sig { params(node: Parser::AST::Node, ancestors: T::Array[Parser::AST::Node]).returns(T.nilable(Offense)) } + def call(node, ancestors) if Node.method_call?(node) || Node.constant?(node) reference = @reference_extractor.reference_from_node(node, ancestors: ancestors, file_path: @filename) check_reference(reference, node) if reference end end