From c5466cbef3b0ad048f0f9cdb049de328b01d457b Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Thu, 3 Nov 2016 19:06:21 -0700 Subject: [PATCH] Run lint on most of api/types The validate-lint script excludes any package names that match api/types. However, the only subpackage that appears to cause issues is api/types/container (due to stuttering names). Tighten the filtering so that other code inside api/types is validated. Signed-off-by: Aaron Lehmann Upstream-commit: efa7068133f224386dbcceb19a6dd31d1d2e9404 Component: engine --- components/engine/hack/validate/lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/hack/validate/lint b/components/engine/hack/validate/lint index 41517e2127..1ba6fbc86c 100755 --- a/components/engine/hack/validate/lint +++ b/components/engine/hack/validate/lint @@ -4,7 +4,7 @@ export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${SCRIPTDIR}/.validate" IFS=$'\n' -files=( $(validate_diff --diff-filter=ACMR --name-only -- '*.go' | grep -v '^vendor/' | grep -v '^api/types/' || true) ) +files=( $(validate_diff --diff-filter=ACMR --name-only -- '*.go' | grep -v '^vendor/' | grep -v '^api/types/container/' || true) ) unset IFS errors=()