Files
avo/.golangci.yml
Michael McLoughlin 1bba0bed7f ci: bump to go 1.20 (#375)
* Update CI Go version to 1.20/1.19
* Update `golangci-lint` to v1.51.2
* Update coverage collection to use new Go 1.20 tools
* Update coverage job to only run on latest Go version

Fixes #367
2023-03-05 14:22:23 -08:00

61 lines
1.3 KiB
YAML

run:
timeout: 5m
linters:
enable-all: true
disable:
- cyclop
- deadcode
- dupword
- errname
- exhaustruct
- exhaustivestruct
- forbidigo
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- godox
- goerr113
- golint
- gomnd
- gosec
- ifshort
- interfacer
- ireturn
- lll
- maligned
- nlreturn
- nonamedreturns
- nosnakecase
- paralleltest
- prealloc
- scopelint
- structcheck
- tagliatelle
- testpackage
- unparam
- varcheck
- varnamelen
- wrapcheck
- wsl
linters-settings:
depguard:
list-type: whitelist
packages:
- github.com/mmcloughlin/avo
- golang.org/x/
gci:
sections:
- standard
- default
- prefix(github.com/mmcloughlin/avo)
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
# gocritic: https://github.com/go-critic/go-critic/issues/762
- " with `(len|cap|real|imag)`"
# We want to allow all caps in certain cases.
- "ALL_CAPS in Go names"