Skip to content

Commit 18aacbc

Browse files
Update golagnci-lint config file (#120)
Signed-off-by: Nikita Skrynnik <[email protected]>
1 parent 7109801 commit 18aacbc

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.golangci.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
run:
3-
# concurrency: 6
43
go: "1.20"
54
timeout: 2m
65
issues-exit-code: 1
@@ -42,13 +41,11 @@ linters-settings:
4241
min-len: 2
4342
min-occurrences: 2
4443
depguard:
45-
list-type: blacklist
46-
include-go-root: false
47-
packages:
48-
- errors
49-
packages-with-error-message:
50-
# specify an error message to output when a blacklisted package is used
51-
- errors: "Please use \"github.com/pkg/errors\" instead of \"errors\" in go imports"
44+
rules:
45+
main:
46+
deny:
47+
- pkg: errors
48+
desc: Please use github.com/pkg/errors instead of errors in go imports
5249
misspell:
5350
locale: US
5451
unparam:
@@ -110,7 +107,6 @@ linters-settings:
110107
- regexpPattern
111108
- singleCaseSwitch
112109
- sloppyLen
113-
# - sloppyReassign
114110
- stringXbytes
115111
- switchTrue
116112
- typeAssertChain
@@ -129,7 +125,6 @@ linters-settings:
129125
linters:
130126
disable-all: true
131127
enable:
132-
# - rowserrcheck
133128
- goheader
134129
- bodyclose
135130
- deadcode
@@ -149,7 +144,6 @@ linters:
149144
- gosimple
150145
- govet
151146
- ineffassign
152-
# - lll
153147
- misspell
154148
- nakedret
155149
- exportloopref
@@ -159,7 +153,6 @@ linters:
159153
- typecheck
160154
- unconvert
161155
- unparam
162-
# - unused
163156
- varcheck
164157
- whitespace
165158
issues:

0 commit comments

Comments
 (0)