| 1 |
run: |
| 2 |
skip-dirs-use-default: true |
| 3 |
skip-dirs: |
| 4 |
- vendor |
| 5 |
- ent |
| 6 |
- graph |
| 7 |
skip-files: |
| 8 |
- ".*\\.peg\\.go$" |
| 9 |
- ".*ignored_.*.go$" |
| 10 |
- "generated.go$" |
| 11 |
- model_gen.go |
| 12 |
|
| 13 |
linters: |
| 14 |
disable-all: true |
| 15 |
enable: |
| 16 |
- bodyclose |
| 17 |
- depguard |
| 18 |
- dogsled |
| 19 |
- dupl |
| 20 |
- funlen |
| 21 |
- goconst |
| 22 |
- gocritic |
| 23 |
- gocyclo |
| 24 |
- gofmt |
| 25 |
- goimports |
| 26 |
- golint |
| 27 |
- gomnd |
| 28 |
- gosec |
| 29 |
|
| 30 |
- misspell |
| 31 |
- unconvert |
| 32 |
|
| 33 |
|
| 34 |
- deadcode |
| 35 |
- errcheck |
| 36 |
- gosimple |
| 37 |
- govet |
| 38 |
- ineffassign |
| 39 |
- staticcheck |
| 40 |
- structcheck |
| 41 |
- typecheck |
| 42 |
- unused |
| 43 |
- varcheck |
| 44 |
|
| 45 |
linters-settings: |
| 46 |
dupl: |
| 47 |
threshold: 100 |
| 48 |
funlen: |
| 49 |
lines: 100 |
| 50 |
statements: 60 |
| 51 |
depguard: |
| 52 |
list-type: blacklist |
| 53 |
packages: |
| 54 |
- golang.org/x/net/context |
| 55 |
- github.com/sirupsen/logrus |
| 56 |
- github.com/prometheus/common/log |
| 57 |
|
| 58 |
issues: |
| 59 |
|
| 60 |
exclude-rules: |
| 61 |
- path: _test\.go |
| 62 |
linters: |
| 63 |
- gomnd |
| 64 |
|
| 65 |
- linters: |
| 66 |
- gocritic |
| 67 |
text: "unnecessaryDefer:" |