From c0c5545c210f7a09aac5304f83967cc637394bf1 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 6 Jun 2024 16:53:30 -0300 Subject: [PATCH] ci: fix `make fmt` to take into account checkouts and elixir deps --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1659f2de1..ace635f13 100644 --- a/Makefile +++ b/Makefile @@ -322,7 +322,11 @@ fmt: $(REBAR) -name '*.hrl' -o \ -name 'rebar.config' -o \ -name '*.eterm' -o \ - -name '*.escript' \) -not -path '*/_build/*' -type f \ + -name '*.escript' \) \ + -not -path '*/_build/*' \ + -not -path '*/deps/*' \ + -not -path '*/_checkouts/*' \ + -type f \ | xargs $(SCRIPTS)/erlfmt -w @$(SCRIPTS)/erlfmt -w 'apps/emqx/rebar.config.script' @$(SCRIPTS)/erlfmt -w 'elvis.config'