c51bf2e54172f74030e768bd673cf36469009d3e
- Author
- github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
ci: sync golangci-lint config (#671)
Diff
1diff --git a/.golangci-soft.yml b/.golangci-soft.yml
2deleted file mode 100644
3index d325d4fcc68edf4df434e2a080ff51a60bbe8661..0000000000000000000000000000000000000000
4--- a/.golangci-soft.yml
5+++ /dev/null
6@@ -1,40 +0,0 @@
7-run:
8- tests: false
9- issues-exit-code: 0
10-
11-issues:
12- include:
13- - EXC0001
14- - EXC0005
15- - EXC0011
16- - EXC0012
17- - EXC0013
18-
19- max-issues-per-linter: 0
20- max-same-issues: 0
21-
22-linters:
23- enable:
24- - exhaustive
25- - goconst
26- - godot
27- - godox
28- - mnd
29- - gomoddirectives
30- - goprintffuncname
31- - misspell
32- - nakedret
33- - nestif
34- - noctx
35- - nolintlint
36- - prealloc
37- - wrapcheck
38-
39- # disable default linters, they are already enabled in .golangci.yml
40- disable:
41- - errcheck
42- - gosimple
43- - govet
44- - ineffassign
45- - staticcheck
46- - unused
47diff --git a/.golangci.yml b/.golangci.yml
48index d6789e014ca229336128f250ccf3bc43de18d15e..90c5c08bd06577c7f6b772d28dc92970918d467d 100644
49--- a/.golangci.yml
50+++ b/.golangci.yml
51@@ -15,10 +15,22 @@ issues:
52 linters:
53 enable:
54 - bodyclose
55+ - exhaustive
56+ - goconst
57+ - godot
58+ - godox
59 - gofumpt
60 - goimports
61+ - gomoddirectives
62+ - goprintffuncname
63 - gosec
64+ - misspell
65+ - nakedret
66+ - nestif
67 - nilerr
68+ - noctx
69+ - nolintlint
70+ - prealloc
71 - revive
72 - rowserrcheck
73 - sqlclosecheck
74@@ -26,3 +38,4 @@ linters:
75 - unconvert
76 - unparam
77 - whitespace
78+ - wrapcheck