aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-12-31 00:03:52 -0600
committerJack Nagel2011-12-31 00:05:25 -0600
commit9c83af341f4b12ec368703a357ad3c4572e954d9 (patch)
tree964cf329127b9b8cb586f45f75703ae2bde3b5be /Library
parent82dd32e370f71121832340be528584864e4cded3 (diff)
downloadbrew-9c83af341f4b12ec368703a357ad3c4572e954d9.tar.bz2
audit: check for trailing newline
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 22b28169e..ca4b8ad59 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -309,6 +309,8 @@ module Homebrew extend self
problems << " * 'DATA' was found, but no '__END__'"
end
+ problems << " * File should end with a newline" if text =~ /.+\z/
+
problems += [' * invalid or missing version'] if f.version.to_s.empty?
# Don't try remaining audits on text in __END__