From a6d3b0944f80f7b84ac91f1904d23a312fbee098 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 3 Feb 2025 18:28:15 +0700 Subject: 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". --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.3