From 4e1ce81e17f3f0a2749afa1dffcfea696a834abc Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Fri, 3 Mar 2017 11:22:51 -0800 Subject: [PATCH] test: eschew you Per https://github.com/coreos/docs/blob/master/STYLE.md#eschew-you --- test | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test b/test index 13c514ed8..69cae86b6 100755 --- a/test +++ b/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