Add presubmit check for hyphens in filenames. (#1847)

No other fixes; this only adds the check.
This commit is contained in:
Miek Gieben
2018-06-01 21:25:36 +01:00
committed by Yong Tang
parent 4f0b36e57e
commit 3994d3a5a7

9
.presubmit/filename-hyphen Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
echo "** presubmit/$(basename $0)"
for dir in "$@"; do
if find $dir | grep '-'; then
echo "** presubmit/$(basename $0): please use an underscore in filenames instead of a hyphen"
fi
done