Skip to content

Commit

Permalink
Update classs in unless_defined_required
Browse files Browse the repository at this point in the history
Add Pastel and use the Canary with ChefUtils

Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Sep 24, 2020
1 parent 1155f00 commit c7ad1a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rubocop/cop/chef/ruby/unless_defined_require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -99,6 +99,7 @@ class UnlessDefinedRequire < Base
"yard" => "YARD",
"zip" => "Zip",
"zlib" => "Zlib",
"pastel" => "Pastel",
}.freeze

def_node_matcher :require?, <<-PATTERN
Expand Down

0 comments on commit c7ad1a8

Please sign in to comment.