Skip to content

Commit 8c114d0

Browse files
committed
Go 1.24.5, matching linter upgrades
1 parent 6748405 commit 8c114d0

File tree

2 files changed

+38
-22
lines changed

2 files changed

+38
-22
lines changed

.golangci.yml

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
1-
2-
issues:
3-
exclude-files:
4-
# golangci-lint doesn't recognize our generated files (*.gen.go)
5-
- ".+\\.gen\\.go$"
6-
1+
version: "2"
72
linters:
8-
disable-all: true
3+
default: none
94
enable:
105
- errcheck
11-
- gosimple
126
- govet
137
- ineffassign
148
- staticcheck
15-
- typecheck
16-
- unused # everything below this is in addition to enabled-by-default
17-
18-
- goimports
9+
- unused
1910
- copyloopvar
2011
- exhaustive
2112
- unconvert
@@ -30,12 +21,37 @@ linters:
3021
# - gomnd # too strict
3122
# - tagliatelle # naming, not struct tag validness..
3223

33-
# full list available by running: $ golangci-lint linters
34-
35-
linters-settings:
36-
gocritic:
37-
disabled-checks:
38-
- ifElseChain # false positives (some if-else chains with "short ifs" look more cumbersome rewritten)
39-
gosec:
40-
excludes:
41-
- G115 # https://dev.to/ccoveille/about-the-gosec-g115-drama-or-how-i-faced-back-integer-conversion-overflow-in-go-1302
24+
# full list available by running: $ golangci-lint linters settings:
25+
settings:
26+
gocritic:
27+
disabled-checks:
28+
- ifElseChain
29+
gosec:
30+
excludes:
31+
- G115
32+
staticcheck:
33+
checks:
34+
- all
35+
- '-ST1001' # "Dot imports are discouraged."
36+
exclusions:
37+
generated: lax
38+
presets:
39+
- comments
40+
- common-false-positives
41+
- legacy
42+
- std-error-handling
43+
paths:
44+
- .+\.gen\.go$
45+
- third_party$
46+
- builtin$
47+
- examples$
48+
formatters:
49+
enable:
50+
- goimports
51+
exclusions:
52+
generated: lax
53+
paths:
54+
- .+\.gen\.go$
55+
- third_party$
56+
- builtin$
57+
- examples$

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23.1
1+
FROM golang:1.24.5
22

33
WORKDIR /workspace
44

0 commit comments

Comments
 (0)