Sha256: a36caf0bb4920e2b7cd9dfc83f3d5a102cd0ffe9dd703b81824addd3be63e1e7

Contents?: true

Size: 1.12 KB

Versions: 100

Compression:

Stored size: 1.12 KB

Contents

require "rubocop"

require_relative "creates_config_store/assigns_rubocop_yaml"
require_relative "creates_config_store/sets_target_ruby_version"
require_relative "creates_config_store/configures_ignored_paths"
require_relative "creates_config_store/merges_user_config_extensions"

module Standard
  class CreatesConfigStore
    def initialize
      @assigns_rubocop_yaml = AssignsRubocopYaml.new
      @sets_target_ruby_version = SetsTargetRubyVersion.new
      @configures_ignored_paths = ConfiguresIgnoredPaths.new
      @combines_plugin_configs = Plugin::CombinesPluginConfigs.new
      @merges_user_config_extensions = MergesUserConfigExtensions.new
    end

    def call(standard_config)
      RuboCop::ConfigStore.new.tap do |config_store|
        options_config = @assigns_rubocop_yaml.call(config_store, standard_config)
        @sets_target_ruby_version.call(options_config, standard_config)
        @combines_plugin_configs.call(options_config, standard_config)
        @merges_user_config_extensions.call(options_config, standard_config)
        @configures_ignored_paths.call(options_config, standard_config)
      end
    end
  end
end

Version data entries

100 entries across 100 versions & 3 rubygems

Version Path
standard-1.42.1 lib/standard/creates_config_store.rb
standard-1.42.0 lib/standard/creates_config_store.rb
standard-1.41.1 lib/standard/creates_config_store.rb
standard-1.41.0 lib/standard/creates_config_store.rb
standard-1.40.1 lib/standard/creates_config_store.rb
standard-1.40.0 lib/standard/creates_config_store.rb
standard-1.39.2 lib/standard/creates_config_store.rb
standard-1.39.1 lib/standard/creates_config_store.rb
standard-1.39.0 lib/standard/creates_config_store.rb
standard-1.38.0 lib/standard/creates_config_store.rb
standard-1.37.0 lib/standard/creates_config_store.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/creates_config_store.rb
standard-1.35.0.1 lib/standard/creates_config_store.rb
standard-1.34.0.1 lib/standard/creates_config_store.rb
standard-1.35.1 lib/standard/creates_config_store.rb
standard-1.35.0 lib/standard/creates_config_store.rb
standard-1.34.0 lib/standard/creates_config_store.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/creates_config_store.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/creates_config_store.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/creates_config_store.rb