Skip to content

Commit 8266c40

Browse files
chore(deps): update golangci/golangci-lint-action action to v7 (#391)
* chore(deps): update golangci/golangci-lint-action action to v7 * add golangci v2 doc --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Truong Nguyen <[email protected]>
1 parent a080bee commit 8266c40

File tree

2 files changed

+118
-1
lines changed

2 files changed

+118
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ jobs:
224224
# with:
225225
# auditOn: push
226226
- name: golangci-lint
227-
uses: golangci/golangci-lint-action@v6
227+
uses: golangci/golangci-lint-action@v7
228228
continue-on-error: ${{ github.event_name != 'pull_request' }}
229229
with:
230230
only-new-issues: true

.golangci.yml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
version: "2"
2+
linters:
3+
default: none
4+
enable:
5+
- asciicheck
6+
- bidichk
7+
- bodyclose
8+
- containedctx
9+
- contextcheck
10+
- cyclop
11+
- dogsled
12+
- dupl
13+
- durationcheck
14+
- err113
15+
- errcheck
16+
- errname
17+
- errorlint
18+
- exhaustive
19+
- forbidigo
20+
- forcetypeassert
21+
- funlen
22+
- gochecknoglobals
23+
- gochecknoinits
24+
- gocognit
25+
- goconst
26+
- gocritic
27+
- gocyclo
28+
- godot
29+
- goheader
30+
- gomodguard
31+
- goprintffuncname
32+
- gosec
33+
- govet
34+
- grouper
35+
- ineffassign
36+
- ireturn
37+
- maintidx
38+
- makezero
39+
- misspell
40+
- mnd
41+
- nestif
42+
- nilerr
43+
- nilnil
44+
- noctx
45+
- nolintlint
46+
- nonamedreturns
47+
- nosprintfhostport
48+
- paralleltest
49+
- prealloc
50+
- predeclared
51+
- promlinter
52+
- revive
53+
- rowserrcheck
54+
- sqlclosecheck
55+
- staticcheck
56+
- thelper
57+
- tparallel
58+
- unconvert
59+
- unparam
60+
- unused
61+
- wastedassign
62+
- whitespace
63+
- wrapcheck
64+
settings:
65+
dupl:
66+
threshold: 100
67+
funlen:
68+
lines: 100
69+
statements: 50
70+
gocyclo:
71+
min-complexity: 10
72+
govet:
73+
settings:
74+
printf:
75+
funcs:
76+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
77+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
78+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
79+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
80+
misspell:
81+
locale: US
82+
mnd:
83+
checks:
84+
- argument
85+
- case
86+
- condition
87+
- return
88+
nolintlint:
89+
require-explanation: false
90+
require-specific: true
91+
allow-unused: false
92+
exclusions:
93+
generated: lax
94+
presets:
95+
- comments
96+
- common-false-positives
97+
- legacy
98+
- std-error-handling
99+
rules:
100+
- linters:
101+
- paralleltest
102+
text: does not use range value in test Run
103+
paths:
104+
- third_party$
105+
- builtin$
106+
- examples$
107+
formatters:
108+
enable:
109+
- gofmt
110+
- gofumpt
111+
- goimports
112+
exclusions:
113+
generated: lax
114+
paths:
115+
- third_party$
116+
- builtin$
117+
- examples$

0 commit comments

Comments
 (0)