forked from anilcse/CosmoScope
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
53 lines (50 loc) · 991 Bytes
/
.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
linters:
enable:
- gofmt
- revive # Modern replacement for golint
- govet
- errcheck
- staticcheck
- gosimple
- ineffassign
- unused
- misspell
- gocyclo
# - gocritic
- bodyclose # Checks whether HTTP response bodies are closed
- gosec # Security checker
issues:
exclude-dirs:
- vendor/ # Replaces skip-dirs
exclude-rules:
- path: _test\.go
linters:
- errcheck
- path: _test\.go
text: "field is never used"
linters:
- unused
linters-settings:
revive:
rules:
- name: exported
arguments:
- "checkPrivateReceivers"
- "disableStutteringCheck"
gofmt:
simplify: true
misspell:
locale: US
gocyclo:
min-complexity: 15
gocritic:
enabled-tags:
- diagnostic
- performance
- style
gosec:
excludes:
- G404 # Insecure random number source (math/rand)
run:
timeout: 5m
tests: true