Class: RuboCop::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/monkey_patches/config.rb

Instance Method Summary collapse

Instance Method Details

#target_chef_versionObject

This is a copy of the #target_rails_version method from RuboCop



6
7
8
9
10
11
12
13
# File 'lib/rubocop/monkey_patches/config.rb', line 6

def target_chef_version
  @target_chef_version ||=
    if for_all_cops['TargetChefVersion']
      for_all_cops['TargetChefVersion'].to_f
    else
      99 # just set a high number so we don't need to update this later
    end
end