-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
84 lines (79 loc) · 1.41 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
run:
timeout: 5m
issues-exit-code: 1
tests: false
skip-dirs:
- ci
- docs
- dockerfiles
- features
- migrations
- templates
- terraform
- test
skip-dirs-use-default: true
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
linters-settings:
gocyclo:
min-complexity: 12
gofmt:
simplify: false
gosec:
includes:
- G401
- G306
- G101
excludes:
- G204
config:
G306: "0600"
G101:
pattern: "(?i)example"
ignore_entropy: false
entropy_threshold: "80.0"
per_char_threshold: "3.0"
truncate: "32"
linters:
disable-all: true
enable:
# - depguard
- dupl
- errcheck
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- ineffassign
- lll
- misspell
- nakedret
- staticcheck
- stylecheck
- unconvert
- unparam
- unused
- prealloc
fast: false
issues:
# Automatically fix found issues
fix: true
exclude-use-default: false
exclude-rules:
- path: main.go
linters:
- gocyclo
- path: internal/generate/mocks.go
linters:
- unused
# This rule ignores missing error handling when closing http.Response.Body.
- linters:
- errcheck
text: ".Body.Close` is not checked"