From fa34f07ec04e22b2e0631cc0656ba569b453d21c Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Wed, 22 Jul 2015 19:11:00 +0200 Subject: [PATCH] Update validate-lint to lint all go files By default, using go with package will only validate the go file for the current platform (or at last misses file_windows.go for example). This tries to fix that. Signed-off-by: Vincent Demeester --- hack/make/validate-lint | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/make/validate-lint b/hack/make/validate-lint index 125aed0532..b501870e8a 100644 --- a/hack/make/validate-lint +++ b/hack/make/validate-lint @@ -41,7 +41,9 @@ packages=( errors=() for p in "${packages[@]}"; do - failedLint=$(golint "$p") + # Run golint on package/*.go file explicitly to validate all go files + # and not just the ones for the current platform. + failedLint=$(golint "$p"/*.go) if [ "$failedLint" ]; then errors+=( "$failedLint" ) fi