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-03 20:36:50 -07:00
committed by GitHub
parent ee2663d5b2
commit fb37c23c84
6 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -615,7 +615,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false
+2 -1
View File
@@ -617,7 +617,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false
+2 -1
View File
@@ -616,7 +616,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false
+2 -1
View File
@@ -616,7 +616,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false
+2 -1
View File
@@ -615,7 +615,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false
+2 -1
View File
@@ -617,7 +617,8 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable:
- shadow
issues:
exclude-use-default: false