mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-12 04:37:54 +02:00
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:
@@ -615,7 +615,8 @@ linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable:
|
||||
- shadow
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
|
||||
@@ -617,7 +617,8 @@ linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable:
|
||||
- shadow
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
|
||||
@@ -616,7 +616,8 @@ linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable:
|
||||
- shadow
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
|
||||
@@ -616,7 +616,8 @@ linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable:
|
||||
- shadow
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
|
||||
@@ -615,7 +615,8 @@ linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable:
|
||||
- shadow
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
|
||||
@@ -617,7 +617,8 @@ linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable:
|
||||
- shadow
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
|
||||
Reference in New Issue
Block a user