-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
59 lines (56 loc) · 1.89 KB
/
.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
run:
timeout: 10m
go: "1.21.3"
issues:
max-per-linter: 0
max-same-issues: 0
exclude-rules:
- path: (.+)_test.go
linters:
- funlen
linters:
enable-all: true
disable:
# deprecated
- deadcode
- maligned
- varcheck
- nosnakecase
- interfacer
- ifshort
- structcheck
- golint
- scopelint
- exhaustivestruct
- rowserrcheck
- sqlclosecheck
- wastedassign
# skip: dubious benefit
- gochecknoglobals # Checks that no global variables exist.
- exhaustruct # Checks if all structure fields are initialized.
- lll # Reports long lines.
- godox # Tool for detection of FIXME, TODO and other comment keywords
- wsl # Whitespace Linter - Forces you to use empty lines!
- tagliatelle # Checks the struct tags.
- nonamedreturns # Reports all named returns.
- wrapcheck # Checks that errors returned from external packages are wrapped.
- ireturn # Accept Interfaces, Return Concrete Types.
- tagalign # Checks that struct tags are well aligned
- depguard # Checks if package imports are in a list of acceptable packages
- musttag # Enforce field tags in (un)marshaled structs.
- dupl # Tool for code clone detection.
- interfacebloat
- cyclop # Checks function and package cyclomatic complexity.
# tests
- testpackage # Makes you use a separate _test package.
- paralleltest # Detects missing usage of t.Parallel() method in your Go test.
linters-settings:
nlreturn:
block-size: 5
gci:
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/Edge-Center)
varnamelen:
min-name-length: 1