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.34.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.34.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.33.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.32.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.31.2 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.31.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.31.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.30.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.30.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.29.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.29.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.28.2 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.28.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.28.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.27.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.26.1 lib/rubocop/cop/mixin/gem_declaration.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/rubocop-1.26.0/lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.26.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.25.1 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.25.0 lib/rubocop/cop/mixin/gem_declaration.rb