diff --git a/.golangci.yml b/.golangci.yml index 2a4db15bd3c4..da97499786de 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,20 +11,28 @@ run: linters: enable: - - gofmt - - govet - deadcode + - gofmt - goimports + - golint + - govet + - importas - ineffassign - misspell - - unused - - varcheck - - golint - staticcheck - - typecheck - structcheck + - typecheck + - unused + - varcheck 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: