Skip to content

Commit

Permalink
Merge pull request #104 from chef/canary
Browse files Browse the repository at this point in the history
Update classs in unless_defined_required
  • Loading branch information
tas50 authored Sep 24, 2020
2 parents 1155f00 + c7ad1a8 commit 75a4180
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 75a4180

Please sign in to comment.