Sha256: d0552f90ffb91eae6c5514f8e03543a252368079a18a5b38500eeff1b83a8364

Contents?: true

Size: 588 Bytes

Versions: 19

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module RSpec
    # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
    # bit of our configuration.
    module Inject
      def self.defaults!
        path = CONFIG_DEFAULT.to_s
        hash = ConfigLoader.send(:load_yaml_configuration, path)
        config = Config.new(hash, path)
        puts "configuration from #{path}" if ConfigLoader.debug?
        config = ConfigLoader.merge_with_default(config, path)
        ConfigLoader.instance_variable_set(:@default_configuration, config)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rubocop-rspec-2.0.0.pre lib/rubocop/rspec/inject.rb
rubocop-rspec-1.44.1 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.44.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.43.2 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.43.1 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.43.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.42.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.41.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.40.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.39.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.38.1 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.38.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.37.1 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.37.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.36.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.35.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.34.1 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.34.0 lib/rubocop/rspec/inject.rb
rubocop-rspec-1.33.0 lib/rubocop/rspec/inject.rb