Skip to content

Commit bda8bb1

Browse files
authored
Merge pull request #274 from EmmEff/update-ci
Update CI
2 parents 7d1db2a + f40e1a5 commit bda8bb1

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
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.64
12+
- image: golangci/golangci-lint:v2.2
1313
golang-previous:
1414
docker:
1515
- image: golang:1.23

.golangci.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1+
version: "2"
12
linters:
2-
disable-all: true
3+
default: none
34
enable:
45
- bidichk
56
- bodyclose
67
- containedctx
78
- contextcheck
89
- decorder
910
- dogsled
11+
- err113
1012
- errcheck
1113
- errchkjson
1214
- gochecknoinits
13-
# - goconst
1415
- gocritic
1516
- gocyclo
16-
- err113
17-
- gofumpt
18-
- goimports
1917
- goprintffuncname
20-
- gosimple
2118
- govet
2219
- grouper
2320
- ineffassign
@@ -28,7 +25,21 @@ linters:
2825
- prealloc
2926
- revive
3027
- staticcheck
31-
- stylecheck
32-
- tenv
33-
- typecheck
3428
- unused
29+
exclusions:
30+
generated: lax
31+
presets:
32+
- comments
33+
- common-false-positives
34+
- legacy
35+
- std-error-handling
36+
paths:
37+
- api$
38+
formatters:
39+
enable:
40+
- gofumpt
41+
- goimports
42+
exclusions:
43+
generated: lax
44+
paths:
45+
- api$

client/pull_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func mockLibraryServer(t *testing.T, sampleBytes []byte, size int64, multistream
233233
w.Header().Set("Content-Type", "application/json; charset=utf-8")
234234
w.WriteHeader(http.StatusOK)
235235

236-
if _, err := w.Write([]byte(fmt.Sprintf("{\"data\": {\"size\": %v}}", size))); err != nil {
236+
if _, err := fmt.Fprintf(w, "{\"data\": {\"size\": %v}}", size); err != nil {
237237
t.Fatalf("error writing /v1/images response: %v", err)
238238
}
239239

0 commit comments

Comments
 (0)