tetragon

Форк
0
/
.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.
3
run:
4
  timeout: 10m
5

6
output:
7
  formats:
8
    - format: tab
9
  unique-by-line: false
10
  sort-results: true
11

12
linters:
13
  disable-all: true
14
  enable:
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

28
linters-settings:
29
  goheader:
30
    values:
31
      regexp:
32
        PROJECT: 'Tetragon|Cilium|Hubble'
33
    template: |-
34
      SPDX-License-Identifier: Apache-2.0
35
      Copyright Authors of {{ PROJECT }}
36
  dupword:
37
    keywords: ["the", "and", "a", "for", "to", "as", "in", "of", "with", "by", "on", "at", "from"]
38

39
issues:
40
  max-issues-per-linter: 0
41
  max-same-issues: 0
42
  exclude-rules:
43
    # Disallows any kind of `fmt.Errorf("%s is too high", bar)`, too opinionated.
44
    - linters: [err113]
45
      text: "do not define dynamic errors, use wrapped static errors instead"
46
    # Most exported consts are self-descriptive.
47
    - linters: [revive]
48
      text: "exported const"
49
    - linters: [revive]
50
      text: "var-naming"
51
    # The file gets prefixed with "Code generated by cmd/cgo; DO NOT EDIT."
52
    - linters: [goheader]
53
      path: pkg/sensors/tracing/genericuprobe_cgo.go
54

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.