forked from matheusmosca/walrus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
79 lines (65 loc) · 1.06 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
run:
deadline: 5m
timeout: 5m
tests: true
linters:
enable:
- megacheck
- govet
- dogsled
- dupl
- errcheck
- exhaustive
- gocognit
- nestif
- gocyclo
- gofmt
- gosec
- gosimple
- misspell
- unused
disable:
- maligned
- prealloc
output:
format: 'colored-line-number'
linters-settings:
dogsled:
max-blank-identifiers: 2
dupl:
threshold: 100
exhaustive:
check-generated: false
default-signifies-exhaustive: false
gocognit:
min-complexity: 10
nestif:
min-complexity: 4
gocyclo:
min-complexity: 20
gofmt:
simplify: true
gosec:
includes:
- G401
- G306
- G101
config:
G306: "0600"
G101:
pattern: "(?i)example"
ignore_entropy: false
entropy_threshold: "80.0"
per_char_threshold: "3.0"
truncate: "32"
gosimple:
go: "1.16"
checks: [ "all" ]
govet:
check-shadowing: false
misspell:
locale: US
# ignore-words:
# - someword
unused:
go: "1.16"