mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: eschew you
Per https://github.com/coreos/docs/blob/master/STYLE.md#eschew-you
This commit is contained in:
parent
4e2fe050f5
commit
4e1ce81e17
8
test
8
test
@ -206,6 +206,14 @@ function fmt_pass {
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Checking documentation style..."
|
||||
# eschew you
|
||||
yous=`find . -name \*.md | xargs egrep --color "[Yy]ou[r]?[ '.,;]" | grep -v /v2/ || true`
|
||||
if [ ! -z "$yous" ]; then
|
||||
echo -e "found 'you' in documentation:\n${yous}"
|
||||
exit 255
|
||||
fi
|
||||
|
||||
if which goword >/dev/null; then
|
||||
echo "Checking goword..."
|
||||
# get all go files to process
|
||||
|
Loading…
x
Reference in New Issue
Block a user