tetragon
/
.golangci.yml
53 строки · 1.3 Кб
1# See https://golangci-lint.run/usage/configuration/ for available options.
2# Also https://github.com/cilium/cilium/blob/master/.golangci.yaml as a reference.
3run:
4timeout: 10m
5
6output:
7formats:
8- format: tab
9unique-by-line: false
10sort-results: true
11
12linters:
13disable-all: true
14enable:
15- err113
16- goheader
17- goimports
18- govet
19- ineffassign
20- misspell
21- revive
22- staticcheck
23- unused
24- gosimple
25- makezero
26- dupword
27
28linters-settings:
29goheader:
30values:
31regexp:
32PROJECT: 'Tetragon|Cilium|Hubble'
33template: |-
34SPDX-License-Identifier: Apache-2.0
35Copyright Authors of {{ PROJECT }}
36dupword:
37keywords: ["the", "and", "a", "for", "to", "as", "in", "of", "with", "by", "on", "at", "from"]
38
39issues:
40max-issues-per-linter: 0
41max-same-issues: 0
42exclude-rules:
43# Disallows any kind of `fmt.Errorf("%s is too high", bar)`, too opinionated.
44- linters: [err113]
45text: "do not define dynamic errors, use wrapped static errors instead"
46# Most exported consts are self-descriptive.
47- linters: [revive]
48text: "exported const"
49- linters: [revive]
50text: "var-naming"
51# The file gets prefixed with "Code generated by cmd/cgo; DO NOT EDIT."
52- linters: [goheader]
53path: pkg/sensors/tracing/genericuprobe_cgo.go
54