Skip to content

Commit d6f98c2

Browse files
committed
chore: update linter
1 parent 2dda695 commit d6f98c2

File tree

2 files changed

+42
-44
lines changed

2 files changed

+42
-44
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
env:
1919
GO_VERSION: stable
20-
GOLANGCI_LINT_VERSION: v1.61.0
20+
GOLANGCI_LINT_VERSION: v1.62.0
2121

2222
steps:
2323
- uses: actions/checkout@v4

.golangci.yml

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
1-
run:
2-
timeout: 5m
1+
linters:
2+
enable-all: true
3+
disable:
4+
- exportloopref # deprecated
5+
- sqlclosecheck # not relevant (SQL)
6+
- rowserrcheck # not relevant (SQL)
7+
- cyclop # duplicate of gocyclo
8+
- lll
9+
- dupl
10+
- wsl
11+
- nlreturn
12+
- mnd
13+
- err113
14+
- wrapcheck
15+
- exhaustive
16+
- exhaustruct
17+
- testpackage
18+
- tparallel
19+
- paralleltest
20+
- prealloc
21+
- forcetypeassert
22+
- bodyclose # Too many false positives: https://github.com/timakin/bodyclose/issues/30
23+
- varnamelen
24+
- noctx
25+
- tagliatelle
26+
- nilnil
27+
- ireturn
28+
- nonamedreturns
29+
- gochecknoglobals # TODO(ldez) should be use on the project
30+
- nestif # TODO(ldez) should be use on the project
31+
- musttag
332

433
linters-settings:
534
govet:
@@ -55,47 +84,6 @@ linters-settings:
5584
sprintf1: true
5685
strconcat: false
5786

58-
linters:
59-
enable-all: true
60-
disable:
61-
- gomnd # deprecated
62-
- execinquery # deprecated
63-
- exportloopref # deprecated
64-
- sqlclosecheck # not relevant (SQL)
65-
- rowserrcheck # not relevant (SQL)
66-
- cyclop # duplicate of gocyclo
67-
- lll
68-
- dupl
69-
- wsl
70-
- nlreturn
71-
- mnd
72-
- err113
73-
- wrapcheck
74-
- exhaustive
75-
- exhaustruct
76-
- testpackage
77-
- tparallel
78-
- paralleltest
79-
- prealloc
80-
- forcetypeassert
81-
- bodyclose # Too many false positives: https://github.com/timakin/bodyclose/issues/30
82-
- varnamelen
83-
- noctx
84-
- tagliatelle
85-
- nilnil
86-
- ireturn
87-
- nonamedreturns
88-
- gochecknoglobals # TODO(ldez) should be use on the project
89-
- nestif # TODO(ldez) should be use on the project
90-
- musttag
91-
92-
output:
93-
show-stats: true
94-
sort-results: true
95-
sort-order:
96-
- linter
97-
- file
98-
9987
issues:
10088
exclude-use-default: false
10189
max-issues-per-linter: 0
@@ -137,3 +125,13 @@ issues:
137125
text: "float-compare: use assert\\.InEpsilon \\(or InDelta\\)" # TODO(ldez) must be fixed
138126
- path: memmetrics/anomaly_test.go
139127
text: "float-compare: use assert\\.InEpsilon \\(or InDelta\\)" # TODO(ldez) must be fixed
128+
129+
output:
130+
show-stats: true
131+
sort-results: true
132+
sort-order:
133+
- linter
134+
- file
135+
136+
run:
137+
timeout: 5m

0 commit comments

Comments
 (0)