diff --git a/Library/Homebrew/rubocops/checksum.rb b/Library/Homebrew/rubocops/checksum.rb index e8035b8ee3..be355b7abc 100644 --- a/Library/Homebrew/rubocops/checksum.rb +++ b/Library/Homebrew/rubocops/checksum.rb @@ -32,7 +32,11 @@ module RuboCop return end - if string_content(checksum).size != 64 && regex_match_group(checksum, /^\w*$/) + checksum_string = string_content(checksum) + + return if checksum_string == "cellar" + + if checksum_string.size != 64 && regex_match_group(checksum, /^\w*$/) problem "sha256 should be 64 characters" end