forked from inspektor-gadget/inspektor-gadget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
43 lines (39 loc) · 938 Bytes
/
.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
output:
sort-results: true
run:
timeout: 10m
build-tags:
- docs
issues:
exclude-use-default: false
max-same-issues: 0
max-issues-per-linter: 0
exclude-rules:
# Ignore check: Packages must have a package comment
- text: "ST1000: at least one file in a package should have a package comment"
linters:
- stylecheck
linters:
disable-all: true
enable:
- gofumpt
- stylecheck
- staticcheck
- errorlint
linters-settings:
gofumpt:
lang-version: "1.19"
staticcheck:
go: "1.19"
checks: ["all"]
stylecheck:
go: "1.19"
checks: ["all"]
errorlint:
# https://github.com/polyfloyd/go-errorlint
# Check whether fmt.Errorf uses the %w verb for formatting errors.
errorf: true
# Check for plain type assertions and type switches (errors.As must be used).
asserts: true
# Check for plain error comparisons (errors.Is must be used)
comparison: true