lib/rubocop/cop/primer/base_cop.rb
# We only verify SystemArguments if it's a `.new` call on a component or
# a ViewHeleper call.
We only verify SystemArguments if it's a `.new` call on a component or
a ViewHeleper call.
We only verify SystemArguments if it ' s a ` . new ` call on a component or a ViewHeleper call .
def valid_node?(node)
          return if node.nil?
          view_helpers.include?(node.method_name) || (node.method_name == :new && !node.receiver.nil? && ::Primer::ViewComponents::STATUSES.key?(node.receiver.const_name))
        end
def valid_node? ( node ) return if node . nil? view_helpers . include? ( node . method_name ) || ( node . method_name == :new && ! node . receiver . nil? && :: Primer :: ViewComponents :: STATUSES . key? ( node . receiver . const_name ) ) end
We only verify SystemArguments if it's a `.new` call on a component or
a ViewHeleper call.
We only verify SystemArguments if it ' s a ` . new ` call on a component or a ViewHeleper call .
node