mirror of
https://github.com/docker/buildx.git
synced 2024-11-22 15:37:16 +08:00
5258e44030
Linters 'deadcode' and 'varcheck' are deprecated since v1.49.0 and had been replaced by 'unused' Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
50 lines
844 B
YAML
50 lines
844 B
YAML
run:
|
|
timeout: 10m
|
|
skip-files:
|
|
- ".*\\.pb\\.go$"
|
|
|
|
modules-download-mode: vendor
|
|
|
|
build-tags:
|
|
|
|
linters:
|
|
enable:
|
|
- gofmt
|
|
- govet
|
|
- depguard
|
|
- goimports
|
|
- ineffassign
|
|
- misspell
|
|
- unused
|
|
- revive
|
|
- staticcheck
|
|
- typecheck
|
|
- nolintlint
|
|
- gosec
|
|
- forbidigo
|
|
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
|
|
forbidigo:
|
|
forbid:
|
|
- '^fmt\.Errorf(# use errors\.Errorf instead)?$'
|
|
gosec:
|
|
excludes:
|
|
- G204 # Audit use of command execution
|
|
- G402 # TLS MinVersion too low
|
|
config:
|
|
G306: "0644"
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- linters:
|
|
- revive
|
|
text: "stutters"
|