From fb37c23c84959e5c811b064099ebb62b3575272e Mon Sep 17 00:00:00 2001 From: 28winz-bot <28.winz@gmail.com> Date: Sat, 4 Jul 2026 10:36:50 +0700 Subject: [PATCH] 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/ --- docs/ja-JP/skills/golang-patterns/SKILL.md | 3 ++- docs/ko-KR/skills/golang-patterns/SKILL.md | 3 ++- docs/tr/skills/golang-patterns/SKILL.md | 3 ++- docs/zh-CN/skills/golang-patterns/SKILL.md | 3 ++- docs/zh-TW/skills/golang-patterns/SKILL.md | 3 ++- skills/golang-patterns/SKILL.md | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/ja-JP/skills/golang-patterns/SKILL.md b/docs/ja-JP/skills/golang-patterns/SKILL.md index 66dcfaa4..d90c3ebe 100644 --- a/docs/ja-JP/skills/golang-patterns/SKILL.md +++ b/docs/ja-JP/skills/golang-patterns/SKILL.md @@ -615,7 +615,8 @@ linters-settings: errcheck: check-type-assertions: true govet: - check-shadowing: true + enable: + - shadow issues: exclude-use-default: false diff --git a/docs/ko-KR/skills/golang-patterns/SKILL.md b/docs/ko-KR/skills/golang-patterns/SKILL.md index ab830154..73c0cce3 100644 --- a/docs/ko-KR/skills/golang-patterns/SKILL.md +++ b/docs/ko-KR/skills/golang-patterns/SKILL.md @@ -617,7 +617,8 @@ linters-settings: errcheck: check-type-assertions: true govet: - check-shadowing: true + enable: + - shadow issues: exclude-use-default: false diff --git a/docs/tr/skills/golang-patterns/SKILL.md b/docs/tr/skills/golang-patterns/SKILL.md index 9ebc648c..525a8ad3 100644 --- a/docs/tr/skills/golang-patterns/SKILL.md +++ b/docs/tr/skills/golang-patterns/SKILL.md @@ -616,7 +616,8 @@ linters-settings: errcheck: check-type-assertions: true govet: - check-shadowing: true + enable: + - shadow issues: exclude-use-default: false diff --git a/docs/zh-CN/skills/golang-patterns/SKILL.md b/docs/zh-CN/skills/golang-patterns/SKILL.md index 011fbd74..c36dd16e 100644 --- a/docs/zh-CN/skills/golang-patterns/SKILL.md +++ b/docs/zh-CN/skills/golang-patterns/SKILL.md @@ -616,7 +616,8 @@ linters-settings: errcheck: check-type-assertions: true govet: - check-shadowing: true + enable: + - shadow issues: exclude-use-default: false diff --git a/docs/zh-TW/skills/golang-patterns/SKILL.md b/docs/zh-TW/skills/golang-patterns/SKILL.md index 9618f9d3..afbc2c5a 100644 --- a/docs/zh-TW/skills/golang-patterns/SKILL.md +++ b/docs/zh-TW/skills/golang-patterns/SKILL.md @@ -615,7 +615,8 @@ linters-settings: errcheck: check-type-assertions: true govet: - check-shadowing: true + enable: + - shadow issues: exclude-use-default: false diff --git a/skills/golang-patterns/SKILL.md b/skills/golang-patterns/SKILL.md index 971417a2..4e08e83a 100644 --- a/skills/golang-patterns/SKILL.md +++ b/skills/golang-patterns/SKILL.md @@ -617,7 +617,8 @@ linters-settings: errcheck: check-type-assertions: true govet: - check-shadowing: true + enable: + - shadow issues: exclude-use-default: false