diff options
| author | 2021-11-13 12:29:08 +0100 | |
|---|---|---|
| committer | 2021-11-13 12:29:08 +0100 | |
| commit | 829a934d23ab221049b4d54926305d8d5d64c9ad (patch) | |
| tree | f4e382b289c113d3ba8a3c7a183507a5609c46c0 /vendor/github.com/microcosm-cc/bluemonday/Makefile | |
| parent | smtp + email confirmation (#285) (diff) | |
| download | gotosocial-829a934d23ab221049b4d54926305d8d5d64c9ad.tar.xz | |
update dependencies (#296)
Diffstat (limited to 'vendor/github.com/microcosm-cc/bluemonday/Makefile')
| -rw-r--r-- | vendor/github.com/microcosm-cc/bluemonday/Makefile | 8 |
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 b5903a2e8..dcd042a71 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 |
