aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index f6cb03380..55e5b8d81 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -286,6 +286,10 @@ class FormulaAuditor
end
end
+ if s.version.to_s =~ /^v/
+ problem "#{spec} version #{s.version} should not have a leading 'v'"
+ end
+
cksum = s.checksum
next if cksum.nil?