-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.golangci.yaml
49 lines (48 loc) · 1009 Bytes
/
.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
run:
timeout: 30m
tests: false
skip-files:
- testinit.go
- cmsys/fnv_hash.go
- 00-config.go
linters-settings:
misspell:
locale: US
ignore-words:
- visable
gofmt:
goimports:
nolintlint:
allow-unused: true
linters:
enable:
- gosec
- misspell
- gofmt
- goimports
- revive
- nolintlint
- unused
- typecheck
issues:
exclude:
# we use underscores only for _postfix
- don't use underscores
# we use ALL_CAPS for constants
- don't use ALL_CAPS
# Simplify returning boolean expression (https://staticcheck.io/docs/checks#S1008)
- S1008
# A function argument is overwritten before its first use (https://staticcheck.io/docs/checks#SA4009)
- SA4009
# Skip weak rnd for now.
- G404
- G401
- G501
- 'indent-error-flow:'
- 'if-return:'
- 'exported:'
- 'unused-parameter: parameter'
# Skip overflow conversion for now.
- G115
exclude-rules:
exclude-use-default: true