Skip to content

Commit 9aa852b

Browse files
committed
chore: bump go to 1.24
1 parent b56afdc commit 9aa852b

File tree

3 files changed

+55
-16
lines changed

3 files changed

+55
-16
lines changed

.golangci.bck.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
run:
2+
timeout: 5m
3+
allow-parallel-runners: true
4+
5+
issues:
6+
# don't skip warning about doc comments
7+
# don't exclude the default set of lint
8+
exclude-use-default: false
9+
exclude-files:
10+
- ".*_test\\.go"
11+
12+
linters:
13+
disable-all: true
14+
enable:
15+
- dupl
16+
- errcheck
17+
- ginkgolinter
18+
- goconst
19+
- gocyclo
20+
- gofmt
21+
- goimports
22+
- gosimple
23+
- govet
24+
- ineffassign
25+
- misspell
26+
- nakedret
27+
- prealloc
28+
- revive
29+
- staticcheck
30+
- typecheck
31+
- unconvert
32+
- unparam
33+
- unused

.golangci.yaml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
1+
version: "2"
12
run:
2-
timeout: 5m
33
allow-parallel-runners: true
4-
5-
issues:
6-
# don't skip warning about doc comments
7-
# don't exclude the default set of lint
8-
exclude-use-default: false
9-
exclude-files:
10-
- ".*_test\\.go"
11-
124
linters:
13-
disable-all: true
5+
default: none
146
enable:
157
- dupl
168
- errcheck
179
- ginkgolinter
1810
- goconst
1911
- gocyclo
20-
- gofmt
21-
- goimports
22-
- gosimple
2312
- govet
2413
- ineffassign
2514
- misspell
2615
- nakedret
2716
- prealloc
2817
- revive
2918
- staticcheck
30-
- typecheck
3119
- unconvert
3220
- unparam
3321
- unused
22+
exclusions:
23+
generated: lax
24+
paths:
25+
- .*_test\.go
26+
- third_party$
27+
- builtin$
28+
- examples$
29+
formatters:
30+
enable:
31+
- gofmt
32+
- goimports
33+
exclusions:
34+
generated: lax
35+
paths:
36+
- .*_test\.go
37+
- third_party$
38+
- builtin$
39+
- examples$

Earthfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ ARG NODEADM_VERSION=1.0.0
1212
ARG NODEADM_VERSION_TAG=$(echo $NODEADM_VERSION | sed s/+/-/)
1313

1414
ARG LUET_VERSION=0.35.1
15-
ARG GOLINT_VERSION=v1.61.0
16-
ARG GOLANG_VERSION=1.23
15+
ARG GOLINT_VERSION=v2.1.6
16+
ARG GOLANG_VERSION=1.24
1717

1818
luet:
1919
FROM quay.io/luet/base:$LUET_VERSION

0 commit comments

Comments
 (0)