Skip to content

Commit 33a998a

Browse files
committed
fix(linter): migrate to version 2
1 parent 2ea443a commit 33a998a

File tree

1 file changed

+38
-22
lines changed

1 file changed

+38
-22
lines changed

.golangci.yaml

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,47 @@
1+
version: "2"
12
run:
2-
# Include test files or not.
3-
# Default: true
43
tests: false
5-
64
linters:
7-
disable-all: true
5+
default: none
86
enable:
9-
- misspell
10-
- govet
11-
- staticcheck
7+
- dupl
128
- errcheck
13-
- unparam
9+
- gocyclo
10+
- gosec
11+
- govet
1412
- ineffassign
13+
- misspell
1514
- nakedret
16-
- gocyclo
17-
- dupl
18-
- goimports
1915
- revive
20-
- gosec
21-
- gosimple
22-
- typecheck
16+
- staticcheck
17+
- unparam
2318
- unused
24-
25-
linters-settings:
26-
gofmt:
27-
simplify: true
28-
goimports:
29-
local-prefixes: github.com/shipengqi/commitizen
30-
dupl:
31-
threshold: 600
19+
settings:
20+
dupl:
21+
threshold: 600
22+
exclusions:
23+
generated: lax
24+
presets:
25+
- comments
26+
- common-false-positives
27+
- legacy
28+
- std-error-handling
29+
paths:
30+
- third_party$
31+
- builtin$
32+
- examples$
33+
formatters:
34+
enable:
35+
- goimports
36+
settings:
37+
gofmt:
38+
simplify: true
39+
goimports:
40+
local-prefixes:
41+
- github.com/shipengqi/commitizen
42+
exclusions:
43+
generated: lax
44+
paths:
45+
- third_party$
46+
- builtin$
47+
- examples$

0 commit comments

Comments
 (0)