Fix gofmt exit code check in Makefile
@@ -114,7 +114,7 @@ codequality:
@echo ">> CODE QUALITY"
@echo -n " FMT "
@$(foreach gofile, $(GOFILES_NOVENDOR),\
- (gofmt -s -l -d -e $(gofile) | tee /dev/stderr) || exit 1;)
+ out=$$(gofmt -s -l -d -e $(gofile) | tee /dev/stderr); if [ -n "$$out" ]; then exit 1; fi;)
@$(call ok)
@echo -n " VET "
@@ -165,3 +165,11 @@ codequality:
fi
@errcheck $(PKGS)
@$(call ok)
+
+ @echo -n " UNCONVERT "
+ @which unconvert > /dev/null; if [ $$? -ne 0 ]; then \
+ $(GO) get -u github.com/mdempsky/unconvert; \
+ fi
+ @unconvert -v $(PKGS)
+ @$(call ok)
+
