diff options
| author | Jack Nagel | 2011-12-31 00:03:52 -0600 |
|---|---|---|
| committer | Jack Nagel | 2011-12-31 00:05:25 -0600 |
| commit | 9c83af341f4b12ec368703a357ad3c4572e954d9 (patch) | |
| tree | 964cf329127b9b8cb586f45f75703ae2bde3b5be /Library | |
| parent | 82dd32e370f71121832340be528584864e4cded3 (diff) | |
| download | brew-9c83af341f4b12ec368703a357ad3c4572e954d9.tar.bz2 | |
audit: check for trailing newline
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 2 |
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__ |
