Sha256: 4dd7a1c57aa1334f43fde13c12e40e65c0730e0f3231de230cd5f05657586b92

Contents?: true

Size: 591 Bytes

Versions: 8

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Minitest
    # 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

8 entries across 8 versions & 1 rubygems

Version Path
rubocop-minitest-0.5.1 lib/rubocop/minitest/inject.rb
rubocop-minitest-0.5.0 lib/rubocop/minitest/inject.rb
rubocop-minitest-0.4.1 lib/rubocop/minitest/inject.rb
rubocop-minitest-0.4.0 lib/rubocop/minitest/inject.rb
rubocop-minitest-0.3.0 lib/rubocop/minitest/inject.rb
rubocop-minitest-0.2.1 lib/rubocop/minitest/inject.rb
rubocop-minitest-0.2.0 lib/rubocop/minitest/inject.rb
rubocop-minitest-0.1.0 lib/rubocop/minitest/inject.rb