-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy path.golangci.yml
More file actions
54 lines (50 loc) · 1.21 KB
/
.golangci.yml
File metadata and controls
54 lines (50 loc) · 1.21 KB
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
# This file contains all available configuration options
# with their default values.
# options for analysis running
run:
# include test files or not, default is true
tests: false
# timeout for running linters, default is 1m
timeout: 4m
linters:
enable:
- asciicheck
- bodyclose
- copyloopvar
- errcheck
- goconst
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nolintlint
- prealloc
- predeclared
- revive
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- wastedassign
- whitespace
disable:
# cosmetic
- lll
- gochecknoglobals
- gochecknoinits
issues:
# only reports issues that have been introduced in commits ahead of origin/master
new-from-rev: origin/master
# exclude some irrelevant issues for us
exclude:
- '^G401: Use of weak cryptographic primitive'
- '^G402: TLS InsecureSkipVerify'
- '^G404: Use of weak random number generator'
- '^G501: Blocklisted import crypto/md5: weak cryptographic primitive'
- '^G505: Blocklisted import crypto/sha1: weak cryptographic primitive'
- '^G601: Implicit memory aliasing in for loop'