Skip to content

Commit aa025a5

Browse files
chore(deps): update golangci/golangci-lint-action action to v7 (#787)
* chore(deps): update golangci/golangci-lint-action action to v7 * bump golangci-lint version Signed-off-by: eternal-flame-AD <[email protected]> --------- Signed-off-by: eternal-flame-AD <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: eternal-flame-AD <[email protected]>
1 parent af97704 commit aa025a5

File tree

2 files changed

+63
-50
lines changed

2 files changed

+63
-50
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- run: (cd ui && yarn)
1616
- run: make build-js
17-
- uses: golangci/golangci-lint-action@v6
17+
- uses: golangci/golangci-lint-action@v7
1818
with:
19-
version: v1.64
19+
version: v2.0.2
2020
args: --timeout=5m
2121
skip-cache: true
2222
- run: go mod download
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
export LD_FLAGS="-w -s -X main.Version=$VERSION -X main.BuildDate=$(date "+%F-%T") -X main.Commit=$(git rev-parse --verify HEAD) -X main.Mode=prod"
3434
echo "LD_FLAGS=$LD_FLAGS" >> $GITHUB_ENV
35-
35+
3636
make build
3737
sudo chown -R $UID build
3838
make package-zip

.golangci.yml

+60-47
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,62 @@
1-
issues:
2-
exclude-dirs:
3-
- plugin/example
4-
- plugin/testing
5-
1+
version: "2"
62
linters:
7-
enable:
8-
- asciicheck
9-
- copyloopvar
10-
- godot
11-
- gofmt
12-
- gofumpt
13-
- goimports
14-
- gomodguard
15-
- goprintffuncname
16-
- gosimple
17-
- govet
18-
- ineffassign
19-
- misspell
20-
- nakedret
21-
- nolintlint
22-
- sqlclosecheck
23-
- staticcheck
24-
- stylecheck
25-
- typecheck
26-
- unconvert
27-
- unused
28-
- whitespace
29-
disable:
30-
- err113
31-
- errcheck
32-
- funlen
33-
- gochecknoglobals
34-
- gocognit
35-
- goconst
36-
- gocyclo
37-
- godox
38-
- lll
39-
- nestif
40-
- nlreturn
41-
- noctx
42-
- testpackage
43-
- wsl
44-
45-
linters-settings:
46-
gofumpt:
47-
extra-rules: true
3+
enable:
4+
- asciicheck
5+
- copyloopvar
6+
- godot
7+
- gomodguard
8+
- goprintffuncname
9+
- misspell
10+
- nakedret
11+
- nolintlint
12+
- sqlclosecheck
13+
- staticcheck
14+
- unconvert
15+
- whitespace
16+
disable:
17+
- err113
18+
- errcheck
19+
- funlen
20+
- gochecknoglobals
21+
- gocognit
22+
- goconst
23+
- gocyclo
24+
- godox
25+
- lll
26+
- nestif
27+
- nlreturn
28+
- noctx
29+
- testpackage
30+
- wsl
31+
settings:
4832
misspell:
49-
locale: US
33+
locale: US
34+
exclusions:
35+
generated: lax
36+
presets:
37+
- comments
38+
- common-false-positives
39+
- legacy
40+
- std-error-handling
41+
paths:
42+
- plugin/example
43+
- plugin/testing
44+
- third_party$
45+
- builtin$
46+
- examples$
47+
formatters:
48+
enable:
49+
- gofmt
50+
- gofumpt
51+
- goimports
52+
settings:
53+
gofumpt:
54+
extra-rules: true
55+
exclusions:
56+
generated: lax
57+
paths:
58+
- plugin/example
59+
- plugin/testing
60+
- third_party$
61+
- builtin$
62+
- examples$

0 commit comments

Comments
 (0)