forked from inspektor-gadget/inspektor-gadget
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
52 lines (51 loc) · 1.04 KB
/
Copy path.golangci.yml
File metadata and controls
52 lines (51 loc) · 1.04 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
version: "2"
run:
go: 1.25.6
build-tags:
- docs
linters:
default: none
enable:
- errorlint
- staticcheck
settings:
errorlint:
errorf: true
asserts: true
comparison: true
staticcheck:
checks:
- all
exclusions:
generated: lax
rules:
# Ignore check: Packages must have a package comment
- linters:
- staticcheck
text: 'ST1000: at least one file in a package should have a package comment'
# Ignore rule about ID vs Id: https://github.com/golang/lint/issues/89
- linters:
- staticcheck
text: 'ST1003:'
- linters:
- staticcheck
text: Switch to image-based gadgets instead
paths:
- third_party$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- github.com/inspektor-gadget/inspektor-gadget
exclusions:
generated: lax
paths:
- third_party$
- examples$