audit: check for trailing newline
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
82dd32e370
commit
9c83af341f
@ -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__
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user