From c7ad1a83fc881b1ac7a2ed0962abf8ae02b73ecd Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 23 Sep 2020 20:18:47 -0700 Subject: [PATCH] Update classs in unless_defined_required Add Pastel and use the Canary with ChefUtils Signed-off-by: Tim Smith --- lib/rubocop/cop/chef/ruby/unless_defined_require.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rubocop/cop/chef/ruby/unless_defined_require.rb b/lib/rubocop/cop/chef/ruby/unless_defined_require.rb index bd23b3f..f6311b9 100644 --- a/lib/rubocop/cop/chef/ruby/unless_defined_require.rb +++ b/lib/rubocop/cop/chef/ruby/unless_defined_require.rb @@ -34,7 +34,7 @@ class UnlessDefinedRequire < Base "base64" => "Base64", "benchmark" => "Benchmark", "cgi" => "CGI", - "chef-utils" => "ChefUtils", + "chef-utils" => "ChefUtils::CANARY", "chef-utils/dist" => "ChefUtils::Dist", "csv" => "CSV", "digest" => "Digest", @@ -99,6 +99,7 @@ class UnlessDefinedRequire < Base "yard" => "YARD", "zip" => "Zip", "zlib" => "Zlib", + "pastel" => "Pastel", }.freeze def_node_matcher :require?, <<-PATTERN