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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -