podman
/
.golangci.yml
99 строк · 2.2 Кб
1---
2run:
3concurrency: 6
4deadline: 5m
5modules-download-mode: readonly
6linters:
7enable-all: true
8disable:
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
72linters-settings:
73errcheck:
74check-blank: false
75ignore: fmt:.*
76nolintlint:
77allow-leading-space: false
78allow-unused: true
79require-specific: true
80revive:
81rules:
82- name: unused-parameter
83disabled: true
84
85issues:
86# Maximum issues count per one linter.
87# Set to 0 to disable.
88# Default: 50
89max-issues-per-linter: 0
90# Maximum count of issues with the same text.
91# Set to 0 to disable.
92# Default: 3
93max-same-issues: 0
94exclude-dirs-use-default: true
95exclude-dirs:
96- contrib
97- dependencies
98exclude-files:
99- swagger.go
100