summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 99a32eb13..89bf8707e 100644
--- a/Makefile
+++ b/Makefile
@@ -169,7 +169,13 @@ golangci-lint: .gopathok varlink_generate .install.golangci-lint
.PHONY: gofmt
gofmt: ## Verify the source code gofmt
- find . -name '*.go' ! -path './vendor/*' -exec gofmt -s -w {} \+
+ find . -name '*.go' -type f \
+ -not \( \
+ -name '.golangci.yml' -o \
+ -name 'Makefile' -o \
+ -path './vendor/*' -prune -o \
+ -path './contrib/*' -prune \
+ \) -exec gofmt -d -e -s -w {} \+
git diff --exit-code
.PHONY: test/checkseccomp/checkseccomp