lib/cookstyle.rb in cookstyle-5.0.4 vs lib/cookstyle.rb in cookstyle-5.1.19
- old
+ new
@@ -34,7 +34,8 @@
require 'rubocop/chef/cookbook_only'
# Chef specific cops
Dir.glob(File.dirname(__FILE__) + '/rubocop/cop/chef/**/*.rb') do |file|
next if File.directory?(file)
+
require_relative file # not actually relative but require_relative is faster
end