Sha256: 1f8fcd940290418d271e9dd5ff644f3a27e117bb8b64919d9a32115a7fbf71f2

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

module SolidusDevSupport
  module RuboCop
    CONFIG_PATH = "#{__dir__}/rubocop/config.yml".freeze

    def self.inject_defaults!
      config = ::RuboCop::ConfigLoader.load_file(CONFIG_PATH)
      puts "configuration from #{CONFIG_PATH}" if ::RuboCop::ConfigLoader.debug?
      config = ::RuboCop::ConfigLoader.merge_with_default(config, CONFIG_PATH, unset_nil: false)
      ::RuboCop::ConfigLoader.instance_variable_set(:@default_configuration, config)
    end
  end
end

SolidusDevSupport::RuboCop.inject_defaults!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_dev_support-2.10.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.9.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.8.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.7.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.6.0 lib/solidus_dev_support/rubocop.rb