-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
63 lines (60 loc) · 1.25 KB
/
Copy path.golangci.yaml
File metadata and controls
63 lines (60 loc) · 1.25 KB
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
60
61
62
63
linters:
enable:
- errorlint # Improves error handling
- gosec # Detects security vulnerabilities
- gocritic # Detects performance and style issues
- dupl # Detects duplicate code
- cyclop # Checks cyclomatic complexity
- funlen # Prevents excessively long functions
- revive
- govet
- staticcheck
- gocyclo
- bodyclose
- ineffassign
- tagalign
- unconvert
- unparam
- unused
run:
concurrency: 2
timeout: 5m
tests: true
allow-parallel-runners: true
issues:
new: true
fix: true
exclude-use-default: false
exclude:
- "don't use underscores in Go names; func example_foo should be exampleFoo"
linters-settings:
govet:
disable-all: true
enable:
- appends
- assign
- atomic
- bools
- findcall
- framepointer
- httpresponse
- ifaceassert
- loopclosure
- lostcancel
- nilfunc
- nilness
- printf
- reflectvaluecompare
- shift
- slog
- sortslice
- stdmethods
- stringintconv
- structtag
- testinggoroutine
- tests
- unmarshal
- unreachable
- unsafeptr
- unusedresult
version: 2