| 1 |
version: "2" |
| 2 |
issues: |
| 3 |
max-issues-per-linter: 0 |
| 4 |
max-same-issues: 0 |
| 5 |
run: |
| 6 |
go: '1.16' |
| 7 |
linters: |
| 8 |
default: none |
| 9 |
enable: |
| 10 |
- asasalint |
| 11 |
- asciicheck |
| 12 |
- bidichk |
| 13 |
- durationcheck |
| 14 |
- errcheck |
| 15 |
- gocritic |
| 16 |
- godot |
| 17 |
- govet |
| 18 |
- importas |
| 19 |
- ineffassign |
| 20 |
- misspell |
| 21 |
- prealloc |
| 22 |
- revive |
| 23 |
- staticcheck |
| 24 |
- testableexamples |
| 25 |
- unconvert |
| 26 |
- unused |
| 27 |
- wastedassign |
| 28 |
- whitespace |
| 29 |
settings: |
| 30 |
revive: |
| 31 |
rules: |
| 32 |
- name: unused-parameter |
| 33 |
disabled: true |
| 34 |
exclusions: |
| 35 |
rules: |
| 36 |
- path: internal/dark/bypass\.go |
| 37 |
text: const \w+ is unused |
| 38 |
# reflect.Ptr deprecated but still needed for older go |
| 39 |
- path: . |
| 40 |
text: 'inline: Constant reflect\.Ptr should be inlined' |
| 41 |
# reflect.PtrTo deprecated but still needed for go<1.18 |
| 42 |
- path: . |
| 43 |
text: 'inline: cannot inline call to reflect\.PtrTo' |
| 44 |
formatters: |
| 45 |
enable: |
| 46 |
- gci |
| 47 |
- goimports |
| 48 |
settings: |
| 49 |
gci: |
| 50 |
sections: |
| 51 |
- standard |
| 52 |
- default |
| 53 |
- localmodule |
| 54 |
custom-order: true |