buildkit/.golangci.yml

46 lines
733 B
YAML
Raw Normal View History

run:
timeout: 10m
skip-files:
- ".*\\.pb\\.go$"
modules-download-mode: vendor
build-tags:
- dfrunsecurity
linters:
enable:
- deadcode
- gofmt
- goimports
- revive
- govet
- importas
- ineffassign
- misspell
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- bodyclose
- errname
- makezero
- whitespace
disable-all: true
linters-settings:
importas:
alias:
- pkg: "github.com/opencontainers/image-spec/specs-go/v1"
alias: "ocispecs"
- pkg: "github.com/opencontainers/go-digest"
alias: "digest"
no-unaliased: true
issues:
exclude-rules:
- linters:
- revive
text: "stutters"