forked from ubiquiti-community/go-unifi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
43 lines (43 loc) · 707 Bytes
/
Copy path.golangci.yaml
File metadata and controls
43 lines (43 loc) · 707 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
version: "2"
issues:
max-same-issues: 0
linters:
enable:
- durationcheck
- copyloopvar
- canonicalheader
- errorlint
- fatcontext
- godot
- ineffassign
- makezero
- misspell
- nilerr
- predeclared
- staticcheck
- unconvert
- unused
- govet
disable:
- errcheck
exclusions:
generated: lax
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
- golines
settings:
gofmt:
simplify: true
rewrite-rules:
- pattern: "interface{}"
replacement: "any"
- pattern: "a[b:len(a)]"
replacement: "a[b:]"
golines:
max-len: 200
exclusions:
generated: lax