-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathgolangci.yml
More file actions
46 lines (46 loc) · 781 Bytes
/
golangci.yml
File metadata and controls
46 lines (46 loc) · 781 Bytes
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
run:
timeout: "5m"
issue-exit-code: 1
tests: false
skip-dirs-use-default: true
allow-parallel-runners: false
go: "1.19"
output:
print-issued-lines: true
print-linter-name: true
unique-by-line: true
path-prefix: ""
linters:
enable-all: false
disable-all: true
enable:
# Defaults linters
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
# - unused
# Non Default linters
- asciicheck
- bodyclose
- cyclop
- decorder
- dupl
- dupword
- errchkjson
- goconst
- gocritic
- goerr113
- gofmt
- gosec
- loggercheck
- paralleltest
- prealloc
- revive
linters-settings:
cyclop:
skip-tests: true
max-complexity: 15
package-average: 0