diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index a17bfff29aac749b07b1813fb5c43eec54aa328e..adde76ff97aaae2ab1cb379cb7a460c34e763c9b 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -847,6 +847,10 @@ class ResourceAuditor if version.to_s =~ /^v/ problem "version #{version} should not have a leading 'v'" end + + if version.to_s =~ /_\d+$/ + problem "version #{version} should not end with a underline and a number" + end end def audit_checksum