mdempsky / unconvert

Remove unnecessary type conversions from Go source
BSD 3-Clause "New" or "Revised" License
377 stars 26 forks source link

Exit status should be nonzero if unnecessary conversions found #5

Closed dtolnay closed 8 years ago

dtolnay commented 8 years ago

Other tools like errcheck and go tool vet exit with a nonzero status if problems are found. This makes it easier to include in a build script.

if ! unconvert $PACKAGES; then
    die "There are unnecessary conversions"
fi