diff options
author | michaeldiamant <michaeldiamant@users.noreply.github.com> | 2022-08-01 12:47:42 -0400 |
---|---|---|
committer | michaeldiamant <michaeldiamant@users.noreply.github.com> | 2022-08-01 12:47:42 -0400 |
commit | 4044aa0ab2b6515328af0ea0be0cb6729a5ac31f (patch) | |
tree | d134d66d494e667f9771eceb61eec24d434c4056 | |
parent | f6603bdcf2ed25e093d37b239bcb6e945a62187c (diff) |
Run go lint on the entire repogo_lint_all
-rwxr-xr-x | scripts/travis/codegen_verification.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/travis/codegen_verification.sh b/scripts/travis/codegen_verification.sh index dd9259334..38b73a81f 100755 --- a/scripts/travis/codegen_verification.sh +++ b/scripts/travis/codegen_verification.sh @@ -42,7 +42,7 @@ function runGoFmt() { } function runGoLint() { - warningCount=$("$GOPATH"/bin/golint $(go list ./... | grep -v /vendor/ | grep -v /test/e2e-go/) | wc -l | tr -d ' ') + warningCount=$(make lint | wc -l | tr -d ' ') if [ "${warningCount}" = "0" ]; then return 0 fi @@ -51,7 +51,7 @@ function runGoLint() { echo >&2 " make lint" # run the linter again to output the actual issues - "$GOPATH"/bin/golint $(go list ./... | grep -v /vendor/ | grep -v /test/e2e-go/) >&2 + make lint >&2 return 1 } |