fix(golang-patterns): replace removed govet check-shadowing with enable: [shadow] (#2423)

golangci-lint deprecated the govet `check-shadowing` setting in v1.57.0 and
later removed it; a config using it now errors. The current v1-format way to
enable the shadow analyzer is `govet.enable: [shadow]`.

Applies to the source skill and the ja-JP, zh-CN, zh-TW, ko-KR, tr translated
copies.

Refs: https://golangci-lint.run/docs/product/migration-guide/
This commit is contained in:
28winz-bot 2026-07-04 10:36:50 +07:00 committed by GitHub
parent ee2663d5b2
commit fb37c23c84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 6 deletions

View file

@ -615,7 +615,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false

View file

@ -617,7 +617,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false

View file

@ -616,7 +616,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false

View file

@ -616,7 +616,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false

View file

@ -615,7 +615,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false

View file

@ -617,7 +617,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false