run the style target to fail if the code is not properly formated

Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
Krasi Georgiev 2018-04-19 15:17:12 +03:00
parent 0b0c9f4b6b
commit 98c51d241b

View file

@ -37,7 +37,7 @@ PREFIX ?= $(shell pwd)
BIN_DIR ?= $(shell pwd)
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
all: format staticcheck unused build test
all: style staticcheck unused build test
style:
@echo ">> checking code style"