2018-06-18 22:57:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "Checking code quality (you want to see no output here)"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo "Vetting:"
|
|
|
|
go list ./... | xargs go vet
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "Linting:"
|
|
|
|
|
|
|
|
go list ./... | xargs golint
|
2018-06-29 19:20:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
echo "Time to format"
|
|
|
|
gofmt -l -s -w .
|
2019-01-28 20:09:25 +00:00
|
|
|
|
|
|
|
# ineffassign (https://github.com/gordonklaus/ineffassign)
|
|
|
|
echo "Checking for ineffectual assignment of errors (unchecked errors...)"
|
|
|
|
ineffassign .
|
|
|
|
|
2019-01-29 20:56:59 +00:00
|
|
|
# misspell (https://github.com/client9/misspell/cmd/misspell)
|
2019-01-28 20:09:25 +00:00
|
|
|
echo "Checking for misspelled words..."
|
|
|
|
misspell . | grep -v "vendor/" | grep -v "go.sum" | grep -v ".idea"
|