-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
58 lines (50 loc) · 952 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
54
55
56
57
58
run:
# timeout for analysis, e.g. 30s, 3m, default is 1m
timeout: 3m
# exclude test files
tests: false
linters:
disable-all: true
enable:
# bugs/error
- staticcheck
- gosec
# - errcheck
# performance
- prealloc
# style, formatting
- gofmt
- goconst
- unconvert
- misspell
- unparam
- nakedret
- tagliatelle
#- dupl
linters-settings:
gofmt:
rewrite-rules:
- pattern: 'a[b:len(a)]'
replacement: 'a[b:]'
misspell:
locale: US
errcheck:
check-type-assertions: true
dupl:
# Tokens count to trigger issue, Default: 150
threshold: 100
tagliatelle:
case:
rules:
json: snake
yaml: snake
env: upperSnake
envconfig: upperSnake
# whatever: snake
issues:
max-same-issues: 0
max-issues-per-linter: 0
exclude-use-default: false
exclude:
# gosec: Duplicated errcheck checks
- G104