blob: 12a028484ed0d1fbbcd04fd2ff58bda91b3ed2c3 (
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
31
32
33
34
35
36
37
38
39
|
# 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:
- goimports
- stylecheck
- deadcode
- govet
- ineffassign
- megacheck
- varcheck
- misspell
- unconvert
- maligned
- noctx
- sqlclosecheck
- rowserrcheck
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# govet checks all struct initializations must be keyed by field names
- linters:
- govet
text: "composite literal uses unkeyed fields"
- path: "_test.go"
linters:
- maligned
- noctx
# 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
|