-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.golangci.yml
57 lines (57 loc) · 1.2 KB
/
.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
linters:
disable-all: true
enable:
- asasalint
- asciicheck
- bidichk
- decorder
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exportloopref
- forcetypeassert
- gochecknoinits
- goconst
- gocritic
- godot
- godox
- err113
- goprintffuncname
- govet
- ineffassign
- makezero
- misspell
- nilerr
- nlreturn
- prealloc
- predeclared
- reassign
- revive
- staticcheck
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- whitespace
- wsl
linters-settings:
gomnd:
ignored-functions:
- "strconv.ParseInt"
- "strconv.ParseFloat"
- "strconv.FormatInt"
- "strconv.FormatFloat"
gocritic:
disabled-checks:
# In the world of AI tensor's are often denoted with a capital letter.
# We want to adopt the go style guide as much as possible but we also want
# to be able to easily show when a variable is a Tensor. So we chose to
# disable captLocal. Note that any other parameter should use a lower case letters.
- "captLocal"
issues:
max-issues-per-linter: 0
max-same-issues: 0