-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.golangci.yaml
48 lines (48 loc) · 1.22 KB
/
.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
run:
timeout: 30m
tests: false
linters-settings:
misspell:
locale: US
ignore-words:
- visable
gofmt:
goimports:
nolintlint:
allow-unused: true
linters:
enable:
- gosec
- misspell
- gofmt
- goimports
- revive
- nolintlint
issues:
exclude-files:
- testinit.go
- cmsys/fnv_hash.go
- 00-config.go
- ptttype/00-config-default.go
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
- comment on exported var.*should be of the form
- func name will be used as .* by other packages, and that stutters; consider calling this'
- type name will be used as .* by other packages, and that stutters; consider calling this'
- 'indent-error-flow:'
- 'exported:'
- '`setBBottom` is unused'
- '`pwcuSetByBit` is unused'
- 'unused-parameter: parameter'
- G115
exclude-rules:
exclude-use-default: true