2021-11-12 18:35:36 -08:00
|
|
|
run:
|
|
|
|
|
timeout: 5m
|
2018-12-05 00:49:12 -08:00
|
|
|
linters:
|
2019-01-09 22:31:14 -08:00
|
|
|
enable-all: true
|
|
|
|
|
disable:
|
2022-03-27 15:31:26 -07:00
|
|
|
- cyclop
|
2022-09-05 17:25:03 -07:00
|
|
|
- deadcode
|
2022-03-27 15:31:26 -07:00
|
|
|
- errname
|
2022-09-05 17:25:03 -07:00
|
|
|
- exhaustruct
|
2022-03-27 15:31:26 -07:00
|
|
|
- exhaustivestruct
|
|
|
|
|
- forbidigo
|
|
|
|
|
- forcetypeassert
|
|
|
|
|
- funlen
|
|
|
|
|
- gochecknoglobals
|
|
|
|
|
- gochecknoinits
|
|
|
|
|
- godox
|
|
|
|
|
- goerr113
|
|
|
|
|
- golint
|
|
|
|
|
- gomnd
|
|
|
|
|
- gosec
|
|
|
|
|
- ifshort
|
|
|
|
|
- interfacer
|
|
|
|
|
- ireturn
|
|
|
|
|
- lll
|
|
|
|
|
- maligned
|
|
|
|
|
- nlreturn
|
2022-09-05 17:25:03 -07:00
|
|
|
- nonamedreturns
|
|
|
|
|
- nosnakecase
|
2022-03-27 15:31:26 -07:00
|
|
|
- paralleltest
|
|
|
|
|
- prealloc
|
|
|
|
|
- scopelint
|
2022-09-05 17:25:03 -07:00
|
|
|
- structcheck
|
2022-03-27 15:31:26 -07:00
|
|
|
- tagliatelle
|
|
|
|
|
- testpackage
|
|
|
|
|
- unparam
|
2022-09-05 17:25:03 -07:00
|
|
|
- varcheck
|
2022-03-27 15:31:26 -07:00
|
|
|
- varnamelen
|
|
|
|
|
- wrapcheck
|
|
|
|
|
- wsl
|
2018-12-05 00:49:12 -08:00
|
|
|
linters-settings:
|
|
|
|
|
depguard:
|
|
|
|
|
list-type: whitelist
|
|
|
|
|
packages:
|
|
|
|
|
- github.com/mmcloughlin/avo
|
2018-12-17 21:13:00 -08:00
|
|
|
- golang.org/x/
|
2022-03-27 15:31:26 -07:00
|
|
|
gci:
|
|
|
|
|
sections:
|
|
|
|
|
- standard
|
|
|
|
|
- default
|
|
|
|
|
- prefix(github.com/mmcloughlin/avo)
|
2019-01-04 18:38:23 -08:00
|
|
|
issues:
|
|
|
|
|
exclude-use-default: false
|
|
|
|
|
exclude:
|
|
|
|
|
# errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
|
|
|
|
|
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
|
2019-01-13 11:09:37 -08:00
|
|
|
# gocritic: https://github.com/go-critic/go-critic/issues/762
|
2022-03-27 15:31:26 -07:00
|
|
|
- " with `(len|cap|real|imag)`"
|
2021-11-12 18:35:36 -08:00
|
|
|
# We want to allow all caps in certain cases.
|
|
|
|
|
- "ALL_CAPS in Go names"
|