Explorar o código

Merge pull request #14862 from vdemeester/validate-lint-all-files

Update validate-lint to lint all go files
Alexander Morozov %!s(int64=10) %!d(string=hai) anos
pai
achega
3198e76b77
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      hack/make/validate-lint

+ 3 - 1
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