From 9c83af341f4b12ec368703a357ad3c4572e954d9 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 31 Dec 2011 00:03:52 -0600 Subject: [PATCH] audit: check for trailing newline Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 22b28169e7..ca4b8ad59b 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__