Sha256: 56bf0e71ca6b2c90453c1916ec3a4d520ec46ef82e3fdbba16a864a7e8ffc3aa

Contents?: true

Size: 738 Bytes

Versions: 13

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    module RSpec
      # @abstract parent class to RSpec cops
      class Base < ::RuboCop::Cop::Base
        include RuboCop::RSpec::Language

        exclude_from_registry

        # Invoke the original inherited hook so our cops are recognized
        def self.inherited(subclass) # rubocop:disable Lint/MissingSuper
          RuboCop::Cop::Base.inherited(subclass)
        end

        # Set the config for dynamic DSL configuration-aware helpers
        # that have no other means of accessing the configuration.
        def on_new_investigation
          super
          RuboCop::RSpec::Language.config = config['RSpec']['Language']
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-3.0.3/lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.3.0 lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.2.0 lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.1.0 lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.0.5 lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.0.4 lib/rubocop/cop/rspec/base.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-3.0.1/lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.0.3 lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.0.2 lib/rubocop/cop/rspec/base.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.1/lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.0.1 lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.0.0 lib/rubocop/cop/rspec/base.rb
rubocop-rspec-3.0.0.pre lib/rubocop/cop/rspec/base.rb