mirror of
https://github.com/docker/buildx.git
synced 2024-11-22 15:37:16 +08:00
a4c3efe783
We should be able to detect nolint comments that point to linters that are disabled (such as with the removed structcheck). Signed-off-by: Justin Chadwell <me@jedevc.com>
41 lines
626 B
YAML
41 lines
626 B
YAML
run:
|
|
timeout: 10m
|
|
skip-files:
|
|
- ".*\\.pb\\.go$"
|
|
|
|
modules-download-mode: vendor
|
|
|
|
build-tags:
|
|
|
|
linters:
|
|
enable:
|
|
- gofmt
|
|
- govet
|
|
- deadcode
|
|
- depguard
|
|
- goimports
|
|
- ineffassign
|
|
- misspell
|
|
- unused
|
|
- varcheck
|
|
- revive
|
|
- staticcheck
|
|
- typecheck
|
|
- nolintlint
|
|
disable-all: true
|
|
|
|
linters-settings:
|
|
depguard:
|
|
list-type: blacklist
|
|
include-go-root: true
|
|
packages:
|
|
# The io/ioutil package has been deprecated.
|
|
# https://go.dev/doc/go1.16#ioutil
|
|
- io/ioutil
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- linters:
|
|
- revive
|
|
text: "stutters"
|