summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-16 17:46:48 +0700
committerShulhan <ms@kilabit.info>2024-03-16 17:46:48 +0700
commitc8c5bd42810e4e10e769b0d008f7524522c727da (patch)
tree55b37451206657099c25e56650ff42b1c8498aa3
parente8e3cb778a2238fe915d05b690b9dbeb2c4e2a8a (diff)
downloadhaminer-c8c5bd42810e4e10e769b0d008f7524522c727da.tar.xz
all: add linter fieldalignment and shadow
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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