From 82d1aed4722ffe7b6a3c852d2ae589b232acb9ba Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Tue, 12 Mar 2024 20:19:04 +0100 Subject: [PATCH] CI: Fix clang format check using incorrect folder --- build-aux/.run-format.zsh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build-aux/.run-format.zsh b/build-aux/.run-format.zsh index a99ea911..41b5f97b 100755 --- a/build-aux/.run-format.zsh +++ b/build-aux/.run-format.zsh @@ -49,7 +49,16 @@ invoke_formatter() { exit 2 } - local -a source_files=(src/**/*.(c|cpp|h|hpp|m|mm)(.N)) + local -a source_files=() + for folder ("lib" "module" "plugins" "tests") { + source_files+=(${folder}/**/*.(c|cpp|h|hpp)(.N)) + } + + for file (${source_files}) { + if [[ $file == *"catch.hpp" ]]; then + source_files=("${source_files[@]/$file}") + fi + } local -a format_args=(-style=file -fallback-style=none) if (( _loglevel > 2 )) format_args+=(--verbose)