94 lines
1.8 KiB
YAML
94 lines
1.8 KiB
YAML
run:
|
|
timeout: 2m
|
|
skip-files: []
|
|
|
|
linters-settings:
|
|
govet:
|
|
enable-all: true
|
|
disable:
|
|
- fieldalignment
|
|
gocyclo:
|
|
min-complexity: 16
|
|
goconst:
|
|
min-len: 3
|
|
min-occurrences: 3
|
|
misspell:
|
|
locale: US
|
|
funlen:
|
|
lines: -1
|
|
statements: 40
|
|
gofumpt:
|
|
extra-rules: true
|
|
depguard:
|
|
list-type: blacklist
|
|
include-go-root: false
|
|
packages:
|
|
- github.com/pkg/errors
|
|
godox:
|
|
keywords:
|
|
- FIXME
|
|
gocritic:
|
|
enabled-tags:
|
|
- diagnostic
|
|
- style
|
|
- performance
|
|
disabled-checks:
|
|
- sloppyReassign
|
|
- rangeValCopy
|
|
- octalLiteral
|
|
- paramTypeCombine # already handle by gofumpt.extra-rules
|
|
settings:
|
|
hugeParam:
|
|
sizeThreshold: 100
|
|
forbidigo:
|
|
forbid:
|
|
- '^print(ln)?$'
|
|
- '^panic$'
|
|
- '^spew\.Print(f|ln)?$'
|
|
- '^spew\.Dump$'
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
- deadcode # deprecated
|
|
- exhaustivestruct # deprecated
|
|
- golint # deprecated
|
|
- ifshort # deprecated
|
|
- interfacer # deprecated
|
|
- maligned # deprecated
|
|
- nosnakecase # deprecated
|
|
- scopelint # deprecated
|
|
- scopelint # deprecated
|
|
- structcheck # deprecated
|
|
- varcheck # deprecated
|
|
- execinquery # not relevant (SQL)
|
|
- rowserrcheck # not relevant (SQL)
|
|
- sqlclosecheck # not relevant (SQL)
|
|
- cyclop # duplicate of gocyclo
|
|
- dupl
|
|
- exhaustive
|
|
- exhaustruct
|
|
- forbidigo
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- goerr113
|
|
- gomnd
|
|
- gosec
|
|
- lll
|
|
- nilnil
|
|
- nlreturn
|
|
- paralleltest
|
|
- prealloc
|
|
- testpackage
|
|
- tparallel
|
|
- varnamelen
|
|
- wrapcheck
|
|
- wsl
|
|
|
|
issues:
|
|
exclude-use-default: false
|
|
max-per-linter: 0
|
|
max-same-issues: 0
|
|
exclude:
|
|
- 'package-comments: should have a package comment'
|