diff options
Diffstat (limited to 'vendor/code.gitea.io/gitea-vet/Makefile')
-rw-r--r-- | vendor/code.gitea.io/gitea-vet/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/gitea-vet/Makefile b/vendor/code.gitea.io/gitea-vet/Makefile new file mode 100644 index 0000000000..e9c9f4f70c --- /dev/null +++ b/vendor/code.gitea.io/gitea-vet/Makefile @@ -0,0 +1,22 @@ +GO ?= go + +.PHONY: build +build: + $(GO) build + +.PHONY: fmt +fmt: + $(GO) fmt ./... + +.PHONY: vet +vet: build + $(GO) vet ./... + $(GO) vet -vettool=gitea-vet ./... + +.PHONY: lint +lint: + @hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ + export BINARY="golangci-lint"; \ + curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell $(GO) env GOPATH)/bin v1.24.0; \ + fi + golangci-lint run --timeout 5m
\ No newline at end of file |