Sha256: 77cf3950ec2c8cdbbdb49126fc4c8d58b1f3aa8099456de9d86b6840492b07a9

Contents?: true

Size: 304 Bytes

Versions: 224

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    # Common functionality for checking gem declarations.
    module GemDeclaration
      extend NodePattern::Macros

      # @!method gem_declaration?(node)
      def_node_matcher :gem_declaration?, '(send nil? :gem str ...)'
    end
  end
end

Version data entries

224 entries across 215 versions & 21 rubygems

Version Path
rubocop-1.54.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.54.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.53.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.53.0 lib/rubocop/cop/mixin/gem_declaration.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.31.2/lib/rubocop/cop/mixin/gem_declaration.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.26.0/lib/rubocop/cop/mixin/gem_declaration.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.52.1/lib/rubocop/cop/mixin/gem_declaration.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.36.0/lib/rubocop/cop/mixin/gem_declaration.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.35.1/lib/rubocop/cop/mixin/gem_declaration.rb
fablicop-1.10.2 vendor/bundle/ruby/3.2.0/gems/rubocop-1.52.1/lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.52.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.52.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.51.0 lib/rubocop/cop/mixin/gem_declaration.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/rubocop-1.50.2/lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.50.2 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.50.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.50.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.49.0 lib/rubocop/cop/mixin/gem_declaration.rb
call_your_name-0.1.0 vendor/bundle/ruby/3.1.0/gems/rubocop-1.48.1/lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.48.1 lib/rubocop/cop/mixin/gem_declaration.rb