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.16.0 lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.15.0 lib/rubocop/cop/mixin/gem_declaration.rb
cocRb-0.1.0 .bundle/ruby/3.0.0/gems/rubocop-1.14.0/lib/rubocop/cop/mixin/gem_declaration.rb
rubocop-1.14.0 lib/rubocop/cop/mixin/gem_declaration.rb