aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-01-26 15:46:23 +0700
committerShulhan <ms@kilabit.info>2025-02-08 15:28:44 +0700
commit77e055b2e0da5d76ca6651020f0eb990a6787e88 (patch)
treeb32e4aae63c1e036140d592164a09423052139a1 /Makefile
parent3826603fb49edda796c2a5541b39b5bb00d3745c (diff)
downloadrescached-77e055b2e0da5d76ca6651020f0eb990a6787e88.tar.xz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
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