summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/microcosm-cc/bluemonday/Makefile
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-10-20 21:58:39 +0100
committerGitHub <noreply@github.com>2021-10-20 16:58:39 -0400
commitc5a408df052c32ff2a1872cc65d2cac451769f35 (patch)
treee0506eb0de08cbdb41e2d09560a25598d9c0803c /vendor/github.com/microcosm-cc/bluemonday/Makefile
parent35b918f574464eeca89fcf0d5f3a07a58a4b5a38 (diff)
downloadgitea-c5a408df052c32ff2a1872cc65d2cac451769f35.tar.gz
gitea-c5a408df052c32ff2a1872cc65d2cac451769f35.zip
Upgrade Bluemonday to v1.0.16 (#17372)
Upgrade Bluemonday to latest version Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'vendor/github.com/microcosm-cc/bluemonday/Makefile')
-rw-r--r--vendor/github.com/microcosm-cc/bluemonday/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/microcosm-cc/bluemonday/Makefile b/vendor/github.com/microcosm-cc/bluemonday/Makefile
index b5903a2e86..dcd042a712 100644
--- a/vendor/github.com/microcosm-cc/bluemonday/Makefile
+++ b/vendor/github.com/microcosm-cc/bluemonday/Makefile
@@ -3,6 +3,7 @@
# all: Builds the code locally after testing
#
# fmt: Formats the source files
+# fmt-check: Check if the source files are formated
# build: Builds the code locally
# vet: Vets the code
# lint: Runs lint over the code (you do not need to fix everything)
@@ -11,6 +12,8 @@
#
# install: Builds, tests and installs the code locally
+GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./.git/*")
+
.PHONY: all fmt build vet lint test cover install
# The first target is always the default action if `make` is called without
@@ -19,7 +22,10 @@
all: fmt vet test install
fmt:
- @gofmt -s -w ./$*
+ @gofmt -s -w ${GOFILES_NOVENDOR}
+
+fmt-check:
+ @([ -z "$(shell gofmt -d $(GOFILES_NOVENDOR) | head)" ]) || (echo "Source is unformatted"; exit 1)
build:
@go build