From 20e6299ebd102c693ee43c68c895d169541f1b15 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 25 Jan 2024 15:02:32 +0100 Subject: [PATCH] added lint targets --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1c920f0..0703bfd 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,14 @@ test: clean mkdir -p t/out go test ./... $(ARGS) +testlint: test lint + +lint: + golangci-lint run + +lint-full: + golangci-lint run --enable-all --exclude-use-default --disable exhaustivestruct,exhaustruct,depguard,interfacer,deadcode,golint,structcheck,scopelint,varcheck,ifshort,maligned,nosnakecase,godot,funlen,gofumpt,cyclop + testfuzzy: clean go test -fuzz ./... $(ARGS) @@ -88,5 +96,5 @@ show-versions: buildlocal @echo "### go version used for building:" @grep -m 1 go go.mod -lint: - golangci-lint run -p bugs -p unused +# lint: +# golangci-lint run -p bugs -p unused