Merge pull request #10450 from iMichka/style-sha256
style: do not fail on sha256 lines with cellar information
This commit is contained in:
commit
b252b5d280
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user