golangci-lint: enable importas and add settings for specs-go package

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
master
Koichi Shiraishi 2021-07-26 18:04:21 +09:00
parent 9cc9d6c13b
commit 414772d06e
No known key found for this signature in database
GPG Key ID: A71DFD3B4DA7A79B
1 changed files with 14 additions and 6 deletions

View File

@ -11,20 +11,28 @@ run:
linters:
enable:
- gofmt
- govet
- deadcode
- gofmt
- goimports
- golint
- govet
- importas
- ineffassign
- misspell
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- golint
- staticcheck
- typecheck
- structcheck
disable-all: true
linters-settings:
importas:
alias:
- pkg: "github.com/opencontainers/image-spec/specs-go/v1"
alias: "ocispecs"
no-unaliased: true
issues:
exclude-rules:
- linters: