-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
59 lines (56 loc) · 1007 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
50
51
52
53
54
55
56
57
58
59
run:
timeout: 5m
go: "1.19"
linters:
disable-all: true
fast: false
enable:
- errcheck
- gosimple
- govet
- ineffassign
- goimports
- staticcheck
- typecheck
- unused
- whitespace
- errname
- godot
- exportloopref
- goconst
- gocritic
- gosec
- misspell
- nakedret
- nolintlint
- stylecheck
- unconvert
- usestdlibvars
- revive
- reassign
- predeclared
- errorlint
# - testpackage // Consider to adopt in the future
issues:
exclude-files:
- "bindata.go"
exclude-rules:
- source: "(noinspection|TODO)"
linters: [ godot ]
- path: "_test\\.go"
linters:
- goconst
- gosec
- errcheck
- text: "Use of weak random number generator"
linters:
- gosec
max-same-issues: 50
linters-settings:
revive:
enable-all-rules: false
rules:
- name: var-naming
disabled: true
stylecheck:
checks: ["*", "-ST1003"]