Skip to content

Commit 11a21aa

Browse files
committed
fix(ci): fully migrate golangci-lint config to v2 schema
- Remove gosimple (absorbed into staticcheck in v2) - Use default: none with explicit enable list - Use exclusions.presets for standard exclusions - Use exclusions.rules for SA1019 suppression Validated against golangci-lint v2.11.4 schema.
1 parent 86e2bac commit 11a21aa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
version: "2"
22

33
linters:
4+
default: none
45
enable:
56
- errcheck
67
- govet
78
- staticcheck
89
- unused
9-
- gosimple
1010
- ineffassign
1111
settings:
1212
govet:
1313
enable-all: false
1414
exclusions:
15+
presets:
16+
- std-error-handling
17+
- common-false-positives
1518
rules:
1619
- linters:
1720
- staticcheck

0 commit comments

Comments
 (0)