Sha256: abe1aad49830f5c8359ebabb38d88ee9f1508eba3e12faf7f229cb70c00866f2
Contents?: true
Size: 619 Bytes
Versions: 6
Compression:
Stored size: 619 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module RSpec # Helps check offenses with variable definitions module SkipOrPending extend RuboCop::NodePattern::Macros # @!method skipped_in_metadata?(node) def_node_matcher :skipped_in_metadata?, <<-PATTERN { (send _ _ <#skip_or_pending? ...>) (send _ _ ... (hash <(pair #skip_or_pending? { true str }) ...>)) } PATTERN # @!method skip_or_pending?(node) def_node_matcher :skip_or_pending?, '{(sym :skip) (sym :pending)}' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems