generated from yngvark/go-cmd-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
46 lines (45 loc) · 1.71 KB
/
.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
linters:
enable-all: true
disable:
- golint
- interfacer # Deprecated
- maligned # Deprecated
- exhaustivestruct # Deprecated
- scopelint # Deprecated
- bodyclose # Deprecated
- contextcheck # Deprecated
- interfacer # Deprecated
- nilerr # Deprecated
- noctx # Deprecated
- rowserrcheck # Deprecated
- sqlclosecheck # Deprecated
- structcheck # Deprecated
- tparallel # Deprecated
- unparam # Deprecated
- wastedassign # Deprecated
- wrapcheck # Deprecated
- forbidigo # Complains on using fmt.Println.
- revive # Complains on underscores in package names.
- stylecheck # Complains on underscores in package names.
- exhaustruct # Complains about unused struct fields, that doesn't make any sense.
- gci # It's just gets in the way too often with hard-to-understand messages.
- ifshort # More hazzle than value
- godot # There are valid exceptions
- nosnakecase # I disagree with this rule
linters-settings:
gci: # This is a workaround that should be removed, see
# https://github.com/golangci/golangci-lint/issues/1490#issuecomment-1186947213
# https://github.com/golangci/golangci-lint/issues/1490
sections:
- standard
- default
- prefix(github.com/yngvark.com/gclone)
varnamelen:
ignore-names:
- tc # test case (used in unit tests)
- fs # file system
issues:
exclude-rules:
- path: _test.go
linters:
- funlen # Long test functions are usually because lots of test cases, thus shouldn't give a warning.