From c8c5bd42810e4e10e769b0d008f7524522c727da Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 16 Mar 2024 17:46:48 +0700 Subject: all: add linter fieldalignment and shadow --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b244201..90d9f55 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,14 @@ test: CGO_ENABLED=1 go test -race ./... lint: - -golangci-lint run ./... + -fieldalignment ./... + -shadow ./... + -golangci-lint run \ + --presets bugs,metalinter,performance,unused \ + --disable exhaustive \ + --disable musttag \ + --disable bodyclose \ + ./... install: build test lint go install -v ./cmd/haminer -- cgit v1.3