Sha256: 4dd255a25aaddaf7e7968c131a65108209c69b2c6fe666328597e12c15a01e9a
Contents?: true
Size: 773 Bytes
Versions: 109
Compression:
Stored size: 773 Bytes
Contents
require "rubocop" module Standard module Runners class Rubocop def call(config) rubocop_runner = RuboCop::CLI::Command::ExecuteRunner.new( RuboCop::CLI::Environment.new( without_parallelizing_in_stdin_mode(config.rubocop_options), config.rubocop_config_store, config.paths ) ) rubocop_runner.run end private # This is a workaround for an issue with how `parallel` and `stdin` # interact when invoked in this way. See: # https://github.com/standardrb/standard/issues/536 def without_parallelizing_in_stdin_mode(options) if options[:stdin] options.delete(:parallel) end options end end end end
Version data entries
109 entries across 109 versions & 3 rubygems