Skip to content

Commit 1063d9f

Browse files
committed
🌱chore: Update golangci-lint version to v2.4.0
Signed-off-by: dongjiang <[email protected]>
1 parent b6eed33 commit 1063d9f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
- name: golangci-lint
3434
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # tag=v8.0.0
3535
with:
36-
version: v2.3.0
36+
version: v2.4.0
3737
args: --output.text.print-linter-name=true --output.text.colors=true --timeout 10m
3838
working-directory: ${{matrix.working-directory}}

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ linters:
2424
- goconst
2525
- gocritic
2626
- gocyclo
27+
- godox
2728
- goprintffuncname
2829
- govet
2930
- importas
@@ -53,6 +54,14 @@ linters:
5354
- fieldalignment
5455
- shadow
5556
enable-all: true
57+
godox:
58+
keywords:
59+
- TODO
60+
- BUG
61+
- FIXME
62+
- NOTE
63+
- OPTIMIZE
64+
- HACK
5665
importas:
5766
no-unaliased: true
5867
revive:
@@ -125,6 +134,9 @@ linters:
125134
- staticcheck
126135
path: (.+)\.go$
127136
text: (QF1008)
137+
- text: "Line contains TODO/BUG/FIXME"
138+
linters:
139+
- godox
128140
formatters:
129141
enable:
130142
- gofmt

0 commit comments

Comments
 (0)