lib/cookstyle.rb in cookstyle-5.15.7 vs lib/cookstyle.rb in cookstyle-5.16.10

- old
+ new

@@ -7,10 +7,15 @@ gem 'rubocop', "= #{Cookstyle::RUBOCOP_VERSION}" require 'rubocop' require 'rubocop/monkey_patches/comment_config.rb' require 'rubocop/monkey_patches/json_formatter.rb' +# monkey patches needed for the TargetChefVersion config option +require 'rubocop/monkey_patches/config.rb' +require 'rubocop/monkey_patches/cop.rb' +require 'rubocop/monkey_patches/commissioner.rb' + module RuboCop class ConfigLoader RUBOCOP_HOME.gsub!( /^.*$/, File.realpath(File.join(File.dirname(__FILE__), '..')) @@ -34,9 +39,10 @@ require 'rubocop/chef' require 'rubocop/chef/cookbook_helpers' require 'rubocop/chef/platform_helpers' require 'rubocop/chef/cookbook_only' +require 'rubocop/cop/target_chef_version' # Chef specific cops Dir.glob(File.dirname(__FILE__) + '/rubocop/cop/chef/**/*.rb') do |file| next if File.directory?(file)