From 77e055b2e0da5d76ca6651020f0eb990a6787e88 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 26 Jan 2025 15:46:23 +0700 Subject: internal/cmd/gocheck: add internal static analyzers Instead of using binary fieldalignment and shadow, run them by creating command that call the same Analyzer internally. This analyzers help finding possible panic on httpd.go. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 590cfbd..459a327 100644 --- a/Makefile +++ b/Makefile @@ -71,8 +71,7 @@ test.prof: .PHONY: lint lint: - -fieldalignment ./... - -shadow ./... + go run ./internal/cmd/gocheck ./... go vet ./... -reuse lint -- cgit v1.3