Sha256: 2f586b752737990b0293577c73c28d94e8278028609374501f7d85ec6803afc0

Contents?: true

Size: 542 Bytes

Versions: 30

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

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

    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

30 entries across 30 versions & 1 rubygems

Version Path
solidus_dev_support-2.5.6 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.5.5 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.5.4 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.5.3 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.5.2 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.5.1 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.5.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.4.3 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.4.2 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.4.1 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.4.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.3.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.2.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.1.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.0.1 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-2.0.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-1.6.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-1.5.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-1.4.0 lib/solidus_dev_support/rubocop.rb
solidus_dev_support-1.3.0 lib/solidus_dev_support/rubocop.rb