aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-02-03 18:28:15 +0700
committerShulhan <ms@kilabit.info>2025-02-03 20:11:07 +0700
commita6d3b0944f80f7b84ac91f1904d23a312fbee098 (patch)
treeceb793e048d97443595bbec18cc85cae7d5ef64d /Makefile
parentb28176b259cc8056b4d3fa1088ee68a6d9294583 (diff)
downloadgorankusu-a6d3b0944f80f7b84ac91f1904d23a312fbee098.tar.xz
all: replace external linters with internal
The fieldalignment and shadow is linter from golang.org/x/tools. This linters actually have an API that can be combined into a program, which provided by package "pakakeh.go/lib/goanalysis".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8794c8f..74db21e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,14 +10,11 @@ all: lint test build
.PHONY: init
init:
git submodule update --init
- go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment
- go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
cd _www && yarn install
.PHONY: lint
lint: lint-www
- -fieldalignment ./...
- -shadow ./...
+ go run ./internal/cmd/gocheck ./...
go vet ./...
.PHONY: lint-www