From 7e05621b268f7d27bc799b8688c37f1320a32117 Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Thu, 4 Oct 2018 20:42:29 +0200 Subject: [PATCH] Move to makefile, do initial excludes --- Makefile | 6 ++++++ gometalinter.config | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ea2a4016..86ad2bf2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,11 @@ export GOOS=windows +lint: + gometalinter --vendor --config gometalinter.config ./... + +test: + go test -v ./... + build: promu build -v diff --git a/gometalinter.config b/gometalinter.config index 9e26dfee..0ee3ac29 100644 --- a/gometalinter.config +++ b/gometalinter.config @@ -1 +1,11 @@ -{} \ No newline at end of file +{ + "Disable": [ + "gocyclo", + "maligned", + "megacheck" + ], + "Exclude": [ + "don't use underscores in Go names", + "exported type .+ should have comment or be unexported" + ] +} \ No newline at end of file