Merge pull request #123269 from pohly/lint-skip-in-verify

golangci-lint: optionally skip it during "make verify"
This commit is contained in:
Kubernetes Prow Robot 2024-02-14 18:08:18 -08:00 committed by GitHub
commit 0b24b55e7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,6 +58,13 @@ if [[ ${EXCLUDE_GODEP:-} =~ ^[yY]$ ]]; then
)
fi
# Exclude golangci-lint if requested, for example in pull-kubernetes-verify.
if [[ ${EXCLUDE_GOLANGCI_LINT:-} =~ ^[yY]$ ]]; then
EXCLUDED_PATTERNS+=(
"verify-golangci.sh" # runs in separate pull-kubernetes-verify-lint
)
fi
# Exclude readonly package check in certain cases, aka, in periodic jobs we don't care and a readonly package won't be touched
if [[ ${EXCLUDE_READONLY_PACKAGE:-} =~ ^[yY]$ ]]; then
EXCLUDED_PATTERNS+=(