class RuboCop::Config
Public Instance Methods
target_chef_version()
click to toggle source
This is a copy of the target_rails_version method from RuboCop
# 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