aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index cf9b1c0a2..01ece830d 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -224,6 +224,8 @@ def audit_some_formulae
problems << " * 'DATA' was found, but no '__END__'"
end
+ problems += [' * invalid or missing version'] if f.version.to_s.empty?
+
# Don't try remaining audits on text in __END__
text_without_patch = (text.split("__END__")[0]).strip()