aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-09-23 13:18:28 +0700
committerShulhan <ms@kilabit.info>2023-09-23 13:18:28 +0700
commitfb9c1047024a47497318b15dcc8d0d4ed782397a (patch)
tree58ecd8f98c176959617ac8f53400907a236012a0
parentbbc3ebac7e823ca7bf9874d223c71f3270258c24 (diff)
downloadrescached-fb9c1047024a47497318b15dcc8d0d4ed782397a.tar.xz
Makefile: replace golangci-lint linter
The golangci-lint become unusable. Even running "make" on the their master branch does not works. Since I use go tip (master) on local, sometimes golangci-lint does not run. This changes replace golangci-lint with "go vet", fieldalignment and shadow (from x/tools), and revive.
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d75fb9e..319b50a 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ DIR_RESCACHED=/usr/share/rescached
##---- Tasks for testing, linting, and building program.
-.PHONY: test test.prof lint debug build resolver rescached
+.PHONY: test test.prof debug build resolver rescached
build: lint test resolver rescached
@@ -61,9 +61,13 @@ test.prof:
-cpuprofile $(CPU_PROF) \
-memprofile $(MEM_PROF) ./...
+.PHONY: lint
lint:
- -golangci-lint run ./...
- -reuse lint
+ -go vet ./...
+ -fieldalignment ./...
+ -shadow ./...
+ -revive ./...
+ -reuse --suppress-deprecation lint
##---- Cleaning up.