Skip to content

Commit 961b3fe

Browse files
committed
bump golangci-lint v2.7.1
1 parent 8a3b723 commit 961b3fe

File tree

2 files changed

+79
-69
lines changed

2 files changed

+79
-69
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: golangci-golint
2424
uses: golangci/golangci-lint-action@v9
2525
with:
26-
version: v1.64.5
26+
version: v2.7.1

.golangci.yml

Lines changed: 78 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,85 @@
1+
version: "2"
12
linters:
2-
disable-all: true
3+
default: none
34
enable:
4-
- gofmt
55
- errcheck
6-
- gosimple
76
- govet
87
- ineffassign
98
- staticcheck
10-
- typecheck
119
- unused
12-
- stylecheck
13-
14-
issues:
15-
exclude-dirs:
16-
# These were code-generated, and cannot be changed without breaking RPC compatibility.
17-
- lambda/messages
18-
19-
linters-settings:
20-
staticcheck:
21-
checks:
22-
- all
23-
- '-SA1029'
24-
stylecheck:
25-
checks:
26-
- "all"
27-
initialisms:
28-
- "ACL"
29-
- "AMQP"
30-
- "API"
31-
- "ARN"
32-
- "ASCII"
33-
- "AWS"
34-
- "CPU"
35-
- "CSS"
36-
- "DB"
37-
- "DNS"
38-
- "EOF"
39-
- "GID"
40-
- "GUID"
41-
- "HTML"
42-
- "HTTP"
43-
- "HTTPS"
44-
- "IAM"
45-
- "ID"
46-
- "IP"
47-
- "JSON"
48-
- "MQTT"
49-
- "OTF"
50-
- "QPS"
51-
- "RAM"
52-
- "RPC"
53-
- "RTP"
54-
- "SIP"
55-
- "SLA"
56-
- "SMTP"
57-
- "SQL"
58-
- "SSH"
59-
- "TCP"
60-
- "TLS"
61-
- "TS"
62-
- "TTL"
63-
- "UDP"
64-
- "UI"
65-
- "UID"
66-
- "URI"
67-
- "URL"
68-
- "UTF8"
69-
- "UUID"
70-
- "VM"
71-
- "VPC"
72-
- "XML"
73-
- "XMPP"
74-
- "XSRF"
75-
- "XSS"
10+
settings:
11+
staticcheck:
12+
checks:
13+
- all
14+
- -SA1029
15+
initialisms:
16+
- ACL
17+
- AMQP
18+
- API
19+
- ARN
20+
- ASCII
21+
- AWS
22+
- CPU
23+
- CSS
24+
- DB
25+
- DNS
26+
- EOF
27+
- GID
28+
- GUID
29+
- HTML
30+
- HTTP
31+
- HTTPS
32+
- IAM
33+
- ID
34+
- IP
35+
- JSON
36+
- MQTT
37+
- OTF
38+
- QPS
39+
- RAM
40+
- RPC
41+
- RTP
42+
- SIP
43+
- SLA
44+
- SMTP
45+
- SQL
46+
- SSH
47+
- TCP
48+
- TLS
49+
- TS
50+
- TTL
51+
- UDP
52+
- UI
53+
- UID
54+
- URI
55+
- URL
56+
- UTF8
57+
- UUID
58+
- VM
59+
- VPC
60+
- XML
61+
- XMPP
62+
- XSRF
63+
- XSS
64+
exclusions:
65+
generated: lax
66+
presets:
67+
- comments
68+
- common-false-positives
69+
- legacy
70+
- std-error-handling
71+
paths:
72+
- lambda/messages
73+
- third_party$
74+
- builtin$
75+
- examples$
76+
formatters:
77+
enable:
78+
- gofmt
79+
exclusions:
80+
generated: lax
81+
paths:
82+
- lambda/messages
83+
- third_party$
84+
- builtin$
85+
- examples$

0 commit comments

Comments
 (0)