Skip to content

Commit 1e53b45

Browse files
committed
chore(ci): bump golangci-lint to v2.2.x
1 parent 0d7e259 commit 1e53b45

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ executors:
99
- image: node:22-slim
1010
golangci-lint:
1111
docker:
12-
- image: golangci/golangci-lint:v1.60
12+
- image: golangci/golangci-lint:v2.2
1313
golang-previous:
1414
docker:
1515
- image: golang:1.22

.golangci.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
version: "2"
12
linters:
2-
disable-all: true
3+
default: none
34
enable:
45
- bidichk
56
- bodyclose
@@ -13,17 +14,13 @@ linters:
1314
- errchkjson
1415
- funlen
1516
- gochecknoinits
16-
- gochecknoinits
1717
- gocognit
1818
- goconst
1919
- gocritic
2020
- gocyclo
2121
- godox
22-
- gofumpt
23-
- goimports
2422
- goprintffuncname
2523
- gosec
26-
- gosimple
2724
- govet
2825
- grouper
2926
- ineffassign
@@ -37,10 +34,28 @@ linters:
3734
- reassign
3835
- revive
3936
- staticcheck
40-
- stylecheck
41-
- tenv
42-
- typecheck
4337
- unconvert
4438
- unparam
4539
- unused
4640
- whitespace
41+
exclusions:
42+
generated: lax
43+
presets:
44+
- comments
45+
- common-false-positives
46+
- legacy
47+
- std-error-handling
48+
paths:
49+
- third_party$
50+
- builtin$
51+
- examples$
52+
formatters:
53+
enable:
54+
- gofumpt
55+
- goimports
56+
exclusions:
57+
generated: lax
58+
paths:
59+
- third_party$
60+
- builtin$
61+
- examples$

0 commit comments

Comments
 (0)