Class: Standard::Plugin::CreatesRunnerContext

Inherits:
Object
  • Object
show all
Defined in:
lib/standard/plugin/creates_runner_context.rb

Instance Method Summary collapse

Instance Method Details

#call(standard_config) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/standard/plugin/creates_runner_context.rb', line 4

def call(standard_config)
  LintRoller::Context.new(
    runner: :standard,
    runner_version: Standard::VERSION,
    engine: :rubocop,
    engine_version: RuboCop::Version.version,
    target_ruby_version: standard_config[:ruby_version]
  )
end