-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
49 lines (49 loc) · 1.11 KB
/
.golangci.yaml
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
# refer: https://golangci-lint.run/usage/configuration/
run:
tests: false
timeout: 15m
skip-dirs:
- "pkg/mod/.*"
- "go/src/.*"
output:
print-issued-lines: true
print-linter-name: true
linters-settings:
cyclop:
# The maximal code complexity to report.
max-complexity: 20
# The maximal average package complexity.
# If it's higher than 0.0 (float) the check is enabled
package-average: 0.0
# Should ignore tests.
skip-tests: true
linters:
# https://golangci-lint.run/usage/linters/
enable:
- asciicheck
- bodyclose
- cyclop
disable:
- gosimple
- unused
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: service/navigation.go
text: "TextInstruction"
linters:
- cyclop
- path: service/navigation.go
text: "DirectionFromDegree"
linters:
- cyclop
- path: service/navigation.go
text: "InsertArriveVoiceInstruction"
linters:
- cyclop
- path: service/navigation.go
text: "GenerateVoiceInstruction"
linters:
- cyclop
severity:
option: value