summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2018-05-03 23:54:36 -0400
committerDave Henderson <dhenderson@gmail.com>2018-05-03 23:54:36 -0400
commitce4b3e3d9ab08e0c2f59286c176d3648da8cf121 (patch)
tree4ff88dbea085df8461d1d329b2f6240b38728c29 /Makefile
parent73bd6eef6351290a678fe1db7b49d04a8da39aeb (diff)
Speeding up lint, adding slow-lint target
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 31 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1dc309dc..bdb03e44 100644
--- a/Makefile
+++ b/Makefile
@@ -97,11 +97,38 @@ gomplate.png: gomplate.svg
cloudconvert -f png -c density=288 $^
lint:
- gometalinter -j $(LINT_PROCS) --vendor --skip test --deadline 120s --disable gotype --enable gofmt --enable goimports --enable misspell --disable gas ./...
+ gometalinter --vendor --disable-all \
+ --enable=gas \
+ --enable=goconst \
+ --enable=gocyclo \
+ --enable=golint \
+ --enable=gotypex \
+ --enable=ineffassign \
+ --enable=vet \
+ --enable=vetshadow \
+ --enable=misspell \
+ --enable=goimports \
+ --enable=gofmt \
+ ./...
+ gometalinter --vendor --skip test --disable-all \
+ --enable=deadcode \
+ ./...
+
+slow-lint:
+ gometalinter -j $(LINT_PROCS) --vendor --skip test --deadline 120s \
+ --disable gotype \
+ --enable gofmt \
+ --enable goimports \
+ --enable misspell \
+ ./...
gometalinter -j $(LINT_PROCS) --vendor --deadline 120s \
- --disable gotype --disable megacheck --disable deadcode --disable gas \
- --enable gofmt --enable goimports --enable misspell \
- ./test/integration
+ --disable gotype \
+ --disable megacheck \
+ --disable deadcode \
+ --enable gofmt \
+ --enable goimports \
+ --enable misspell \
+ ./test/integration
megacheck -tags integration ./test/integration
.PHONY: gen-changelog clean test build-x compress-all build-release build build-integration-image test-integration-docker gen-docs lint clean-images clean-containers docker-images