diff options
| author | Shulhan <ms@kilabit.info> | 2023-09-23 13:18:28 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-09-23 13:18:28 +0700 |
| commit | fb9c1047024a47497318b15dcc8d0d4ed782397a (patch) | |
| tree | 58ecd8f98c176959617ac8f53400907a236012a0 | |
| parent | bbc3ebac7e823ca7bf9874d223c71f3270258c24 (diff) | |
| download | rescached-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-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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. |
