audit: check for trailing newline

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-12-31 00:03:52 -06:00
parent 82dd32e370
commit 9c83af341f

View File

@ -309,6 +309,8 @@ module Homebrew extend self
problems << " * 'DATA' was found, but no '__END__'" problems << " * 'DATA' was found, but no '__END__'"
end end
problems << " * File should end with a newline" if text =~ /.+\z/
problems += [' * invalid or missing version'] if f.version.to_s.empty? problems += [' * invalid or missing version'] if f.version.to_s.empty?
# Don't try remaining audits on text in __END__ # Don't try remaining audits on text in __END__