-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
50 lines (47 loc) · 1.4 KB
/
.golangci.yml
File metadata and controls
50 lines (47 loc) · 1.4 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
linters:
enable:
- errcheck # Checks for unchecked errors
- gosec # Inspects source code for security issues
- govet # Reports suspicious constructs
- staticcheck # Go static analysis tool
- stylecheck # Stylecheck is a replacement for golint
- godot # Check if comments end with a period
- godox # Tool for detection of FIXME, TODO comments
- gofmt # Checks whether code was gofmt-ed
- goimports # Checks import statements are formatted according to goimports
- misspell # Finds commonly misspelled English words
- unconvert # Remove unnecessary type conversions
- unparam # Reports unused function parameters
- whitespace # Tool for detection of leading and trailing whitespace
- wsl # Whitespace Linter - Forces empty lines at right places
issues:
exclude-rules:
- path: _test\.go
linters:
- gomnd # Disable magic number detector in tests
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0.8
gocyclo:
min-complexity: 15
goconst:
min-len: 3
min-occurrences: 3
godox:
keywords:
- FIXME
- TODO
- BUG
godot:
capital: true
gosec:
excludes:
- G107 # SSRF protection false positives
run:
deadline: 5m
tests: true
skip-dirs:
- vendor
- third_party