sync/fmt linting tasks with stereoscope

This commit is contained in:
Alex Goodman
2020-05-21 09:37:20 -04:00
parent 17b4b26fbb
commit 2471663d27
7 changed files with 13 additions and 19 deletions
+6
View File
@@ -7,6 +7,10 @@ RESET := $(shell tput sgr0)
TITLE := $(BOLD)$(PURPLE)
SUCCESS := $(BOLD)$(GREEN)
ifndef TEMPDIR
$(error TEMPDIR is not set)
endif
.PHONY: all boostrap lint lint-fix unit coverage integration build-release
all: lint unit integration
@@ -26,10 +30,12 @@ bootstrap:
lint:
@printf '$(TITLE)Running linters$(RESET)\n'
test -z "$(shell gofmt -l -s .)"
$(LINTCMD)
lint-fix:
@printf '$(TITLE)Running lint fixers$(RESET)\n'
gofmt -w -s .
$(LINTCMD) --fix
unit: