-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
59 lines (55 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
59
# running config
run:
# concurrency:
# 分析超时
timeout: 5m
# modules-download-mode: readonly
# 默认存在多少问题退出检查
issue-exit-code: 1
# 包含测试文件
tests: true
# 跳过的检查目录
skip-dirs:
- bin
skip-dirs-use-default: true
# 跳过的文件
skip-files:
output:
format: colored-line-number
# 输出行号
print-issued-lines: true
# 输出linter名称
print-linter-name: true
linters-settings:
govet:
enable-all: true
linters:
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
# - gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- exportloopref
- staticcheck
- typecheck
- unconvert
- unparam
- varcheck
- godox
- structcheck
- goprintffuncname
- prealloc
- rowserrcheck
- whitespace