Skip to content

Commit fc27458

Browse files
authored
Merge pull request #273 from EmmEff/update-ci
Update CI
2 parents 808c7ae + 7c0e396 commit fc27458

File tree

3 files changed

+25
-9
lines changed

3 files changed

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

.golangci.yml

Lines changed: 23 additions & 7 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,10 +14,7 @@ linters:
1314
- goconst
1415
- gocritic
1516
- gocyclo
16-
- gofumpt
17-
- goimports
1817
- goprintffuncname
19-
- gosimple
2018
- govet
2119
- grouper
2220
- ineffassign
@@ -27,7 +25,25 @@ linters:
2725
- prealloc
2826
- revive
2927
- staticcheck
30-
- stylecheck
31-
- tenv
32-
- typecheck
3328
- unused
29+
exclusions:
30+
generated: lax
31+
presets:
32+
- comments
33+
- common-false-positives
34+
- legacy
35+
- std-error-handling
36+
paths:
37+
- third_party$
38+
- builtin$
39+
- examples$
40+
formatters:
41+
enable:
42+
- gofumpt
43+
- goimports
44+
exclusions:
45+
generated: lax
46+
paths:
47+
- third_party$
48+
- builtin$
49+
- examples$

client/pull_test.go

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

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

0 commit comments

Comments
 (0)