Description
I have a code that is importing archive/zip package. I run golangci-lint against the code and all works fine in go1.15
however in go1.16 there was a change introduced in archive/zip/reader.go (https://go.googlesource.com/go/+/refs/tags/go1.16.3/src/archive/zip/reader.go#655)
I have the following linter configuration
linters:
disable-all: true
enable:
- deadcode
- dupl
- goconst
- gocyclo
- gofmt
- goimports
- golint
- govet
- ineffassign
- misspell
- nakedret
- structcheck
- unparam
- unused
- varcheck
golangcli-lint run command now fails with the following error
Running error: buildir: analysis skipped: errors in package: [src/server/pkg/iputil/iprange.go:13:2: could not import server/locerrors (src/server/locerrors/main.go:11:2: could not import server/pkg/locerror (src/server/pkg/locerror/locerror.go:6:2: could not import archive/zip (/gopath/linux64/src/archive/zip/reader.go:639:2: IsDir redeclared)))]
I believe skip-dirs loads the folder although i have set directory locerror to skip.
Can someone suggest on how i can work around this issue.