How to make go linters ignore vendor/? -


how make go vet, gofmt, , other go linter tools ignore third-party files in vendor/, preferably accurate, cumulative exit status?

for example, find . -name vendor -prune -o -name '*.go' -exec gofmt -s -w {} \; present meaningful exit status?

i

go fmt $(go list ./... | grep -v /vendor/) go test $(go list ./... | grep -v /vendor/) 

but since started using govendor discovered can same using govendor less typing

govendor fmt +l // +l shorthand local 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -