blob: e75deddf9176afb929b30f3438d3ef10019e2c85 (
plain)
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
|
# options for analysis running
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
modules-download-mode: readonly
# list of useful linters could be found at https://github.com/golangci/awesome-go-linters
linters:
disable-all: true
enable:
- errcheck
- errorlint
- gochecknoglobals
issues:
exclude-use-default: false
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- linters:
- errcheck
path: "_test.go"
text: "Error return value of `(cc|con(ns?)?|db|closer|lis(tener)?).Close` is not checked"
- linters:
- gochecknoglobals
path: "internal/metadata/featureflag/feature_flags.go"
text: "is a global variable"
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
|