-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yaml
43 lines (38 loc) · 1.18 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
issues:
exclude-rules:
- path: (.+)_test.go
linters:
- goconst # Test data doesn't need to be in constants
- err113 # We're not defining static errors in tests
linters-settings:
nlreturn:
# Allow 2 lines max to have a return statement without a new line before it
block-size: 3
gocritic:
disabled-checks:
- "paramTypeCombine"
- "unnamedResult"
enabled-tags:
- "performance"
- "style"
- "diagnostic"
govet:
enable-all: true
disable:
- fieldalignment
linters:
enable-all: true
disable:
# Disabled because they're too strict
- gochecknoglobals # We sometimes use global variables for ease of use
- depguard # Unnecessary check
- exhaustruct # We don't always have to fill all fields
- lll # We don't enforce line lengths
- wsl # Too strict about statement placement
- wrapcheck # We don't enforce wrapping
- varnamelen # We don't enforce var name length
- testpackage # We don't use test packages
- funlen # We don't enforce the length of a function
- exportloopref # Deprecated and no longer required in 1.22
- godot # Too strict
- godox # We allow TODOs