mirror of
https://github.com/google/nomulus.git
synced 2025-07-03 09:43:30 +02:00
Enforce that source files end in a newline (#153)
This commit is contained in:
parent
888bc158fe
commit
8afc4f4d3d
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,11 @@ PRESUBMITS = {
|
||||||
}, REQUIRED):
|
}, REQUIRED):
|
||||||
"File did not include the license header.",
|
"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/
|
# System.(out|err).println should only appear in tools/
|
||||||
PresubmitCheck(
|
PresubmitCheck(
|
||||||
r".*\bSystem\.(out|err)\.print", "java", {
|
r".*\bSystem\.(out|err)\.print", "java", {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue