Skip to content

Commit 8fc1bc7

Browse files
authored
Merge pull request #62 from EmmEff/update-ci
Update CI
2 parents 0d7e259 + 822147a commit 8fc1bc7

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ 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:
15-
- image: golang:1.22
15+
- image: golang:1.23
1616
golang-latest:
1717
docker:
18-
- image: golang:1.23
18+
- image: golang:1.24
1919

2020
jobs:
2121
lint-markdown:

.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)