瀏覽代碼

test: eschew you

Per https://github.com/coreos/docs/blob/master/STYLE.md#eschew-you
Anthony Romano 9 年之前
父節點
當前提交
4e1ce81e17
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      test

+ 8 - 0
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