From d49ba537f82fb418723390744768d3525ed3c986 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 6 Nov 2023 21:30:00 +0700 Subject: Makefile: replace linter golangci-lint with revive The reason for replacing is the golangci-lint become unusable. It does not provide any useful hints (either we become better at writing Go code or the default linter is not good enough). While at it, add another linters from golang.org/x/tools including fieldalignment and shadow. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d3c9a3..645cfc4 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,9 @@ DIR_BUILD:=_bin all: test lint build lint: - -golangci-lint run ./... + -fieldalignment ./... + -shadow ./... + -revive ./... test: go run ./cmd/ciigo-example embed -- cgit v1.3