forked from metalogical/BigFiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
53 lines (51 loc) · 1.23 KB
/
.golangci.yml
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
run:
# Timeout for analysis, e.g. 30s, 5m.
# Default: 1m
timeout: 10m
output:
# Print linter name in the end of issue text.
# Default: true
print-linter-name: true
print-issued-lines: true
linters-settings:
errorlint:
# Check whether fmt.Errorf uses the %w verb for formatting errors.
# See the https://github.com/polyfloyd/go-errorlint for caveats.
# Default: true
errorf: true
# Permit more than 1 %w verb, valid per Go 1.20 (Requires errorf:true)
# Default: true
errorf-multi: false
# Check for plain type assertions and type switches.
# Default: true
asserts: true
# Check for plain error comparisons.
# Default: true
comparison: true
lll:
# Max line length, lines longer will be reported.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option.
# Default: 120.
line-length: 120
# Tab width in spaces.
# Default: 1
tab-width: 1
linters:
enable:
- errorlint
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- lll
issues:
exclude-rules:
- linters:
- lll
source: "^// "
- path: api
linters:
- lll
exclude-generated-strict: true