Skip to content

Commit 63fbef7

Browse files
committed
Fix CI (#51)
* Fix CI errors Signed-off-by: Pavel Larkin <laxkin@gmail.com>
1 parent bcb0c61 commit 63fbef7

File tree

2 files changed

+58
-37
lines changed

2 files changed

+58
-37
lines changed

.golangci.yaml

Lines changed: 57 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,61 @@
1-
linters:
2-
enable-all: true
3-
4-
disable:
5-
- testpackage
6-
- ireturn
7-
- varnamelen
8-
- gofumpt
9-
- exhaustruct
10-
11-
issues:
12-
exclude-files:
13-
- tree_dump*
14-
15-
linters-settings:
16-
depguard:
17-
rules:
18-
main:
19-
files:
20-
- $all
21-
- "!$test"
22-
allow:
23-
- $gostd
24-
- github.com/google # all google packages
25-
test:
26-
files:
27-
- "$test"
28-
allow:
29-
- $gostd
30-
- github.com/stretchr
31-
exhaustruct:
32-
exclude:
33-
- ".*_test.go"
34-
1+
version: "2"
352
output:
36-
sort-results: true
373
sort-order:
38-
- file # filepath, line, and column.
4+
- file
395
- severity
406
- linter
7+
linters:
8+
enable:
9+
- wsl_v5
10+
disable:
11+
- exhaustruct
12+
- ireturn
13+
- testpackage
14+
- varnamelen
15+
settings:
16+
wsl_v5:
17+
allow-first-in-block: true
18+
allow-whole-block: false
19+
branch-max-lines: 2
20+
depguard:
21+
rules:
22+
main:
23+
files:
24+
- $all
25+
- '!$test'
26+
allow:
27+
- $gostd
28+
- github.com/google
29+
test:
30+
files:
31+
- $test
32+
allow:
33+
- $gostd
34+
- github.com/stretchr
35+
exhaustruct:
36+
exclude:
37+
- .*_test.go
38+
exclusions:
39+
generated: lax
40+
presets:
41+
- comments
42+
- common-false-positives
43+
- legacy
44+
- std-error-handling
45+
paths:
46+
- tree_dump
47+
- third_party
48+
- builtin
49+
- examples
50+
formatters:
51+
enable:
52+
- gci
53+
- gofmt
54+
- goimports
55+
exclusions:
56+
generated: lax
57+
paths:
58+
- tree_dump*
59+
- third_party$
60+
- builtin$
61+
- examples$

make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ qa_gosec() {
7676
## qa/lint: run golangci-lint
7777
qa_lint() {
7878
echo "✔️ Running golangci-lint..."
79-
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 run
79+
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.2 run
8080
}
8181

8282
## qa/test: run all tests

0 commit comments

Comments
 (0)