-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.golangci.yml
More file actions
52 lines (45 loc) · 1017 Bytes
/
.golangci.yml
File metadata and controls
52 lines (45 loc) · 1017 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '2'
linters:
# Disable all linters by default, then enable specific ones
default: none
enable:
- errcheck
- gocritic
- govet
- ineffassign
- revive
- staticcheck
- unused
- unparam
- exhaustive
- misspell
- unconvert
# Linter-specific settings
settings:
errcheck:
exclude-functions:
- fmt:.*
check-blank: false
revive:
rules:
- name: package-comments
disabled: true
# Exclude error checking issues in example files only
# Examples are demonstration code where verbosity from error handling would obscure the API being demonstrated
# Production code in cmd/ and internal/ must handle all errors properly
exclusions:
rules:
- path: ^examples/
linters:
- errcheck
- gocritic
- revive
- staticcheck
run:
timeout: 5m
tests: false
output:
formats:
text:
print-linter-name: true
print-issued-lines: true