Sha256: 627310977366119d8488f51b1b60dc9931993c7c547f72a8809a07441fbdeaeb

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    module Rake
      module Helper
        module OnNamespace
          extend NodePattern::Macros

          def_node_matcher :namespace?, <<~PATTERN
            (send nil? :namespace ...)
          PATTERN

          def on_send(node)
            return unless namespace?(node)

            on_namespace(node)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-rake-0.6.0/lib/rubocop/cop/rake/helper/on_namespace.rb
rubocop-rake-0.6.0 lib/rubocop/cop/rake/helper/on_namespace.rb
rubocop-rake-0.5.1 lib/rubocop/cop/rake/helper/on_namespace.rb
rubocop-rake-0.5.0 lib/rubocop/cop/rake/helper/on_namespace.rb