-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.golangci.yml
More file actions
37 lines (35 loc) · 776 Bytes
/
Copy path.golangci.yml
File metadata and controls
37 lines (35 loc) · 776 Bytes
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
# .golangci.yml
version: "2"
run:
timeout: 3m
tests: true
formatters:
enable:
- gofumpt
settings:
gofumpt:
extra-rules: false
linters:
default: standard
enable:
- staticcheck
- whitespace
- nakedret
- errcheck
disable:
- unused
settings:
nakedret:
max-func-lines: 50
errcheck:
# Catch unchecked errors, but allow _ in tests.
exclude-functions:
- (*testing.T).Error
- (*testing.T).Fatal
- (*testing.T).Fatalf
- (*testing.T).Log
- (*testing.T).Logf
- (*testing.T).Errorf
# Disable warning on unchecked type assertions as the few cases where we do not check are contractually obligated
# to work correctly
check-type-assertions: false