Module: MetzScan::Commands::Scan::TargetRubyVersion

Defined in:
lib/metz_scan/commands/scan/target_ruby_version.rb

Defined Under Namespace

Classes: EnvOverride

Constant Summary collapse

ENV_KEY =
"RUBOCOP_TARGET_RUBY_VERSION"

Class Method Summary collapse

Class Method Details

.with_project_config(paths, all_cops:) ⇒ Object



13
14
15
16
17
# File 'lib/metz_scan/commands/scan/target_ruby_version.rb', line 13

def with_project_config(paths, all_cops:, &)
  return yield if all_cops

  EnvOverride.new(ProjectConfigScope.target_ruby_version(paths)).with_env(&)
end