mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-28 16:37:43 +08:00

structcheck is abandoned, and has been replaced by the unused linter. See https://golangci-lint.run/usage/linters/#structcheck for more information. Signed-off-by: Justin Chadwell <me@jedevc.com>
40 lines
609 B
YAML
40 lines
609 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
|
|
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"
|