Skip to content

Commit a931960

Browse files
committed
Update
1 parent 305ae7a commit a931960

File tree

2 files changed

+36
-18
lines changed

2 files changed

+36
-18
lines changed

.golangci.yaml

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
1+
version: "2"
12
linters:
2-
disable-all: true
3+
default: none
34
enable:
45
- errcheck
5-
- gosimple
66
- govet
77
- ineffassign
88
- staticcheck
9+
- unconvert
910
- unused
10-
11-
- gofumpt
11+
exclusions:
12+
generated: lax
13+
presets:
14+
- comments
15+
- common-false-positives
16+
- legacy
17+
- std-error-handling
18+
paths:
19+
- third_party$
20+
- builtin$
21+
- examples$
22+
formatters:
23+
enable:
1224
- gci
13-
- unconvert
14-
15-
linters-settings:
16-
gci:
17-
custom-order: true
18-
sections:
19-
- standard
20-
- default
21-
- localmodule
22-
gofumpt:
23-
module-path: github.com/aaronjheng/kafka-cli
25+
- gofumpt
26+
settings:
27+
gci:
28+
sections:
29+
- standard
30+
- default
31+
- localmodule
32+
custom-order: true
33+
gofumpt:
34+
module-path: github.com/aaronjheng/kafka-cli
35+
exclusions:
36+
generated: lax
37+
paths:
38+
- third_party$
39+
- builtin$
40+
- examples$

.trunk/trunk.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cli:
88
plugins:
99
sources:
1010
- id: trunk
11-
ref: v1.6.7
11+
ref: v1.6.8
1212
uri: https://github.com/trunk-io/plugins
1313

1414
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
@@ -24,14 +24,15 @@ lint:
2424
- checkov
2525
- osv-scanner
2626
- prettier
27+
- golangci-lint
2728
enabled:
29+
- golangci-lint2@2.0.2
2830
- cspell@8.18.1
2931
- actionlint@1.7.7
3032
- git-diff-check
3133
- gofmt@1.20.4
32-
- golangci-lint@1.64.8
3334
- markdownlint@0.44.0
34-
- trufflehog@3.88.22
35+
- trufflehog@3.88.23
3536
- yamllint@1.37.0
3637

3738
actions:

0 commit comments

Comments
 (0)