Enforce that source files end in a newline (#153)

This commit is contained in:
gbrodman 2019-07-03 12:16:11 -04:00 committed by GitHub
parent 8ad2533b1a
commit 0ffe7cd5dc

View file

@ -82,6 +82,11 @@ PRESUBMITS = {
}, REQUIRED):
"File did not include the license header.",
# Files must end in a newline
PresubmitCheck(r".*\n$", ("java", "js", "soy", "sql", "py", "sh", "gradle"),
{"node_modules/"}, REQUIRED):
"Source files must end in a newline.",
# System.(out|err).println should only appear in tools/
PresubmitCheck(
r".*\bSystem\.(out|err)\.print", "java", {