Skip to content

Commit 0c0fca5

Browse files
committed
fix: update golangci-lint config for v1.64 compatibility
Fix configuration validation errors in .golangci.yml: Changes: - Remove deprecated 'check-shadowing' option from govet - Replace with new 'settings.shadow.strict' configuration - Remove deprecated 'format' option from output section - Keep remaining output options (print-issued-lines, print-linter-name, sort-results) These options were deprecated in newer golangci-lint versions and caused CI validation failures. The new configuration maintains the same linting behavior while being compatible with golangci-lint v1.64+. Fixes CI error: - jsonschema validation errors for govet and output sections - Configuration now validates successfully with golangci-lint config verify
1 parent 05f7ea1 commit 0c0fca5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.golangci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ linters-settings:
4646
check-blank: false
4747

4848
govet:
49-
check-shadowing: true
5049
enable-all: true
50+
settings:
51+
shadow:
52+
strict: true
5153

5254
gocyclo:
5355
min-complexity: 15
@@ -102,7 +104,6 @@ issues:
102104
text: "SA1019:" # Ignore deprecation warnings
103105

104106
output:
105-
format: colored-line-number
106107
print-issued-lines: true
107108
print-linter-name: true
108109
sort-results: true

0 commit comments

Comments
 (0)