Skip to content

Commit d8721dd

Browse files
author
tr1v3r
committed
chore(github/workflows): upgrade golangci lint config
chore: enable formatter goimports
1 parent 9026932 commit d8721dd

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

.golangci.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
1+
version: "2"
12
run:
2-
deadline: 30s
33
tests: false
4-
skip-dirs-use-default: true
5-
skip-dirs:
6-
- test
7-
8-
linters-settings:
9-
gofmt:
10-
simplify: true
11-
govet:
12-
check-shadowing: true
13-
goimports:
14-
local-prefixes: gorm.io,gorm.io/gen
15-
unused:
16-
check-exported: false
17-
revive:
18-
min-confidence: 0.8
194

205
linters:
21-
presets:
22-
- unused
236
enable:
24-
- govet
25-
- revive
267
- bodyclose
27-
- errcheck
28-
- exportloopref
29-
- staticcheck
30-
disable:
31-
- gofumpt
8+
- revive
9+
- unparam
10+
exclusions:
11+
generated: lax
12+
paths:
13+
- third_party$
14+
- builtin$
15+
- examples$
3216

33-
issues:
34-
exclude-use-default: false
17+
formatters:
18+
enable:
19+
- goimports
20+
settings:
21+
gofmt:
22+
simplify: true
23+
goimports:
24+
local-prefixes:
25+
- gorm.io
26+
- gorm.io/gen
27+
exclusions:
28+
generated: lax
29+
paths:
30+
- third_party$
31+
- builtin$
32+
- examples$

0 commit comments

Comments
 (0)