podman

Форк
0
/
.golangci.yml 
99 строк · 2.2 Кб
1
---
2
run:
3
  concurrency: 6
4
  deadline: 5m
5
  modules-download-mode: readonly
6
linters:
7
  enable-all: true
8
  disable:
9
    # too many reports but requires attention
10
    - depguard
11
    - tagalign
12
    - perfsprint
13
    - typecheck
14
    # useful hints that should be addressed
15
    - testifylint # all of reports that should be fixed
16
    - nakedret
17
    - gosmopolitan # usage of time.Local in pkg/k8s.io
18
    - tagliatelle # too many JSON keys cannot be changed due to compat
19
    - nosnakecase # too many false positives due to the `unix` package
20
    - dupword # too many false positives (e.g., in tests)
21
    - gocognit
22
    - testpackage
23
    - goerr113
24
    - exhaustivestruct
25
    - errorlint
26
    - wrapcheck
27
    - paralleltest
28
    - wsl
29
    - godox
30
    - tparallel
31
    - gomnd
32
    - nlreturn
33
    - noctx
34
    - nestif
35
    - predeclared
36
    - thelper
37
    - ifshort
38
    - forbidigo
39
    - exhaustive
40
    - gofumpt
41
    - gci
42
    - godot
43
    - dupl
44
    - funlen
45
    - gochecknoglobals
46
    - gochecknoinits
47
    - goconst
48
    - gocyclo
49
    - lll
50
    - gosec
51
    - maligned
52
    - musttag # way to many warnings to fix for now, also some false positives
53
    - gomoddirectives
54
    - containedctx
55
    - contextcheck
56
    - cyclop
57
    - errname
58
    - forcetypeassert
59
    - ireturn
60
    - varnamelen
61
    - maintidx
62
    - nilnil
63
    - nonamedreturns
64
    - exhaustruct
65
    # deprecated linters
66
    - golint # replaced by revive
67
    - scopelint # replaced by exportloopref
68
    - interfacer
69
    - deadcode    # deprecated since v1.49.0, replaced by unused
70
    - structcheck # deprecated since v1.49.0, replaced by unused
71
    - varcheck    # deprecated since v1.49.0, replaced by unused
72
linters-settings:
73
  errcheck:
74
    check-blank: false
75
    ignore: fmt:.*
76
  nolintlint:
77
    allow-leading-space: false
78
    allow-unused: true
79
    require-specific: true
80
  revive:
81
    rules:
82
    - name: unused-parameter
83
      disabled: true
84

85
issues:
86
  # Maximum issues count per one linter.
87
  # Set to 0 to disable.
88
  # Default: 50
89
  max-issues-per-linter: 0
90
  # Maximum count of issues with the same text.
91
  # Set to 0 to disable.
92
  # Default: 3
93
  max-same-issues: 0
94
  exclude-dirs-use-default: true
95
  exclude-dirs:
96
    - contrib
97
    - dependencies
98
  exclude-files:
99
    - swagger.go
100

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

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

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

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