Sha256: 6bf050ccc8c20a7324888d3c7bac205d72147583a840fa596aa7cd6b5d79ed2d

Contents?: true

Size: 794 Bytes

Versions: 96

Compression:

Stored size: 794 Bytes

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"

module Standard
  class CreatesConfigStore
    def initialize
      @assigns_rubocop_yaml = AssignsRubocopYaml.new
      @sets_target_ruby_version = SetsTargetRubyVersion.new
      @configures_ignored_paths = ConfiguresIgnoredPaths.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)
        @configures_ignored_paths.call(options_config, standard_config)
      end
    end
  end
end

Version data entries

96 entries across 96 versions & 3 rubygems

Version Path
standard-1.21.1 lib/standard/creates_config_store.rb
standard-1.21.0 lib/standard/creates_config_store.rb
standard-1.20.0 lib/standard/creates_config_store.rb
standard-1.19.1 lib/standard/creates_config_store.rb
standard-1.19.0 lib/standard/creates_config_store.rb
standard-1.18.1 lib/standard/creates_config_store.rb
standard-1.18.0 lib/standard/creates_config_store.rb
standard-1.17.0 lib/standard/creates_config_store.rb
standard-1.16.1 lib/standard/creates_config_store.rb
standard-1.16.0 lib/standard/creates_config_store.rb
standard-1.15.0 lib/standard/creates_config_store.rb
standard-1.14.0 lib/standard/creates_config_store.rb
standard-1.13.0 lib/standard/creates_config_store.rb
standard-1.12.1 lib/standard/creates_config_store.rb
standard-1.12.0 lib/standard/creates_config_store.rb
standard-1.11.0 lib/standard/creates_config_store.rb
standard-1.10.0 lib/standard/creates_config_store.rb
standard-1.9.1 lib/standard/creates_config_store.rb
standard-1.9.0 lib/standard/creates_config_store.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/standard-1.8.0/lib/standard/creates_config_store.rb