forked from awslabs/soci-snapshotter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
61 lines (59 loc) · 1.24 KB
/
.golangci.yml
File metadata and controls
61 lines (59 loc) · 1.24 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
51
52
53
54
55
56
57
58
59
60
61
# https://golangci-lint.run/usage/configuration#config-file
version: "2"
linters:
enable:
- copyloopvar
- misspell
- revive
- staticcheck
- unconvert
settings:
staticcheck:
checks:
- all
# ST1003 is left out because it is a bit opinionated.
- -ST1003
# QF1008 discourages use of embedded field names,
# which can sometimes clear up what certain fields
# correspond to, especially in larger structs.
- -QF1008
disable:
- errcheck
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- revive
# Ignore unused parameter rule. It's not enforced by go and
# it can make it hard to understand what the unused parameter
# was supposed to be used for.
text: 'unused-parameter:'
paths:
- docs
- images
- out
- script
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- docs
- images
- out
- script
- third_party$
- builtin$
- examples$
run:
timeout: 3m