Skip to content

Commit

Permalink
Add presubmit check for hyphens in filenames. (coredns#1847)
Browse files Browse the repository at this point in the history
No other fixes; this only adds the check.
  • Loading branch information
miekg authored and yongtang committed Jun 1, 2018
1 parent 4f0b36e commit 3994d3a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .presubmit/filename-hyphen
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3994d3a

Please sign in to comment.