Merge pull request #4992 from RainbowMango/pr_enable_deprecation_check

Enable deprecation check and bump golangci-lint to v1.59.0
This commit is contained in:
karmada-bot 2024-05-29 10:49:28 +08:00 committed by GitHub
commit c4ee8dbf78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -82,10 +82,6 @@ linters-settings:
- name: unexported-return - name: unexported-return
- name: time-naming - name: time-naming
- name: empty-block - name: empty-block
staticcheck:
checks:
- all
- '-SA1019' # disable deprecation check. Tracked by https://github.com/karmada-io/karmada/issues/3835.
issues: issues:
# The list of ids of default excludes to include or disable. By default it's empty. # The list of ids of default excludes to include or disable. By default it's empty.

View File

@ -19,7 +19,7 @@ set -o nounset
set -o pipefail set -o pipefail
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
GOLANGCI_LINT_VER="v1.58.0" GOLANGCI_LINT_VER="v1.59.0"
cd "${REPO_ROOT}" cd "${REPO_ROOT}"
source "hack/util.sh" source "hack/util.sh"