-
Notifications
You must be signed in to change notification settings - Fork 10
/
.golangci.yml
109 lines (109 loc) · 2.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
linters-settings:
gocritic:
enabled-tags:
- performance
- style
- experimental
gocyclo:
min-complexity: 19
goconst:
min-len: 3
min-occurrences: 5
lll:
line-length: 160
funlen:
lines: 80
statements: 45
gomoddirectives:
replace-local: true
govet:
enable-all: true
settings:
printf:
funcs:
- Tracef
- Infof
- Warnf
- Errorf
- Fatalf
- Criticalf
- Panicf
linters:
enable-all: true
fast: false
disable:
- cyclop
- depguard
- exhaustruct
- gochecknoglobals
- gochecknoinits
- godot
- gofumpt
- nonamedreturns
- paralleltest
- perfsprint
- tagliatelle
- testpackage
- wsl
- err113
# deprecated
- execinquery
- exportloopref
- gomnd
issues:
max-same-issues: 0
exclude-use-default: true
exclude:
- "cyclomatic complexity .* of func `Test.*` is high"
- "cyclomatic complexity .* of func `.*parseConfigItem` is high"
- "Function name: parseConfigItem, Cyclomatic Complexity"
- "cognitive complexity .* of func `Test.*"
- "cognitive complexity .* of func `initConfiguration`"
- "cyclomatic complexity .* of func `initConfiguration` is high"
- 'Magic number: 0.01\D '
- 'Magic number: 1\D '
- 'Magic number: 2\D '
- 'Magic number: 3\D '
- 'Magic number: 5\D '
- 'Magic number: 10\D '
- 'Magic number: 30\D '
- 'Magic number: 16\D '
- 'Magic number: 64\D '
- 'Magic number: 100\D '
- 'Magic number: 1024\D '
- 'Magic number: 1e9\D '
- 'Magic number: 0o644\D '
- 'Magic number: 0o755\D '
- 'Magic number: 0664\D '
- 'Magic number: 100000\D '
- 'Magic number: 65536\D '
- 'Expect WriteFile permissions to be 0600 or less'
- 'G204: Subprocess launched'
- 'G114: Use of net/http serve function that has no support for setting timeouts'
- 'RLIMIT_NOFILE contains underscore'
- 'O_APPEND contains underscore'
- 'O_WRONLY contains underscore'
- 'O_CREATE contains underscore'
- 'Duplicate words.*sadhajshdka'
- 'FactorLog.*does not support error-wrapping directive'
- "Function 'dump' has too many statements"
- "Function 'parseConfigItem' has too many statements"
- "Function 'startEmbeddedPerl' has too many statements"
- "Function 'mainLoop' has too many statements"
- "Function 'mainLoop' is too long"
- "Function 'initConfiguration' has too many statements"
- "Function 'printUsage' has too many statements"
- "Function 'execCmd' has too many statements"
- "Metric: modgearmanworker_workers_total Error: non-counter metrics"
- 'local replacement are not allowed: pkg/'
- "fieldalignment: struct"
- "Function 'PrintUsageCheckGearman' has too many statements"
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test.*\.go
linters:
- errcheck
- mnd
- dupword
- funlen
- lll