forked from cheluen/singbox-proxy-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
44 lines (40 loc) · 776 Bytes
/
.golangci.yml
File metadata and controls
44 lines (40 loc) · 776 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
version: "2"
run:
timeout: 5m
modules-download-mode: readonly
linters:
default: none
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
settings:
errcheck:
check-type-assertions: false
check-blank: false
exclude-functions:
- (*database/sql.Tx).Rollback
- (*os/exec.Cmd).Wait
exclusions:
rules:
- path: _test\.go
linters:
- errcheck
- linters:
- errcheck
text: "Error return value of .*(Rollback|Close|Wait|Scan).*is not checked"
formatters:
enable:
- gofmt
- goimports
settings:
gofmt:
simplify: true
goimports:
local-prefixes:
- sb-proxy
issues:
max-issues-per-linter: 50
max-same-issues: 10