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-0.6.1 lib/standard/creates_config_store.rb
standard-0.6.0 lib/standard/creates_config_store.rb
standard-0.5.2 lib/standard/creates_config_store.rb
standard-0.5.1 lib/standard/creates_config_store.rb
standard-0.5.0 lib/standard/creates_config_store.rb
standard-0.4.7 lib/standard/creates_config_store.rb
standard-0.4.6 lib/standard/creates_config_store.rb
standard-0.4.5 lib/standard/creates_config_store.rb
standard-0.4.4 lib/standard/creates_config_store.rb
standard-0.4.3 lib/standard/creates_config_store.rb
standard-0.4.2 lib/standard/creates_config_store.rb
standard-0.4.1 lib/standard/creates_config_store.rb
standard-0.4.0 lib/standard/creates_config_store.rb
standard-0.3.0 lib/standard/creates_config_store.rb
standard-0.2.5 lib/standard/creates_config_store.rb
standard-0.2.4 lib/standard/creates_config_store.rb
standard-0.2.3 lib/standard/creates_config_store.rb
standard-0.2.2 lib/standard/creates_config_store.rb
standard-0.2.1 lib/standard/creates_config_store.rb
standard-0.2.0 lib/standard/creates_config_store.rb