Skip to content

Commit

Permalink
golangci-lint: enable importas and add settings for specs-go package
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
  • Loading branch information
zchee committed Jul 26, 2021
1 parent 5575ce0 commit 0e02981
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0e02981

Please sign in to comment.