aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-05-09 13:08:02 +0200
committerGitHub <noreply@github.com>2021-05-09 13:08:02 +0200
commitc3802dcc0f54763b27ffb6af5b03289651fda250 (patch)
tree731a7893554b0a82942426668811c6af4eafccdb /Makefile
parenta69fb523a738315cc089eeae98f265d595bfe7dc (diff)
downloadgitea-c3802dcc0f54763b27ffb6af5b03289651fda250.tar.gz
gitea-c3802dcc0f54763b27ffb6af5b03289651fda250.zip
Use binary version of revive linter (#15739)
Use the common `go get` method to install and run the revive linter, removing the useless build/lint.go and related vendor libraries.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8d9702ac83..6074f541c7 100644
--- a/Makefile
+++ b/Makefile
@@ -282,7 +282,10 @@ errcheck:
.PHONY: revive
revive:
- GO111MODULE=on $(GO) run -mod=vendor build/lint.go -config .revive.toml -exclude=./vendor/... ./... || exit 1
+ @hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
+ GO111MODULE=off $(GO) get -u github.com/mgechev/revive; \
+ fi
+ @revive -config .revive.toml -exclude=./vendor/... ./...
.PHONY: misspell-check
misspell-check: