Class: Standard::Runners::Rubocop

Inherits:
Object
  • Object
show all
Defined in:
lib/standard/runners/rubocop.rb

Instance Method Summary collapse

Instance Method Details

#call(config) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/standard/runners/rubocop.rb', line 6

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