1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 07:11:44 +00:00

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 888bc158fe
commit 8afc4f4d3d

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", {