-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
70 lines (59 loc) · 1.56 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
run:
timeout: 5m
modules-download-mode: readonly
tests: false
linters-settings:
lll:
# max line length, lines longer will be reported. Default is 120.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option
line-length: 250
# tab width in spaces. Default to 1.
tab-width: 1
nestif:
# minimal complexity of if statements to report, 5 by default
min-complexity: 4
errorlint:
# Report non-wrapping error creation using fmt.Errorf
errorf: true
errcheck:
exclude-functions:
- (*database/sql.Rows).Close
- (*database/sql.Tx).Rollback
- (*go.uber.org/zap.Logger).Sync
- (io.Closer).Close
stylecheck:
checks: ["all", "-ST1000", "-ST1003"]
testpackage:
# regexp pattern to skip files
skip-regexp: (export|internal)_test\.go
linters:
enable:
enable-all: true
disable:
- interfacer # deprecated
- golint # deprecated
- maligned # deprecated
- scopelint # deprecated
- wsl # strange behavior
- paralleltest # strange behavior
- exhaustivestruct # strange behavior
- tagliatelle # strange behavior
- ifshort # strange behavior
- dogsled # strange behavior
- wrapcheck # strange behavior
- exhaustive # strange behavior
- errorlint # strange behavior
- gci # strange behavior
- revive
- gochecknoglobals
- typecheck
- nosnakecase
- exhaustruct
- unused
disable-all: false
presets:
fast: false
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0