From 74058df1e0fd1974715b5bbd5b7065c0fdd3759b Mon Sep 17 00:00:00 2001 From: Rustam Gamidov Date: Fri, 3 Jul 2026 16:01:18 +0300 Subject: [PATCH] Add line breaks to clang-format filter This excludes cmake files. clang-format is not able to format cmake scripts and makes them ugly Relates-To: MINOR Signed-off-by: Rustam Gamidov --- scripts/misc/clang_format_ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/misc/clang_format_ci.sh b/scripts/misc/clang_format_ci.sh index 645e222c4..06e33c51c 100755 --- a/scripts/misc/clang_format_ci.sh +++ b/scripts/misc/clang_format_ci.sh @@ -40,7 +40,7 @@ git fetch origin master git branch --all # Get affected files and filter source files FILES=$(git diff-tree --no-commit-id --name-only --diff-filter=d -r origin/master "$CURRENT_BRANCH" \ - | grep '\.c\|\.cpp\|\.cxx\|\.h\|\.hpp\|\.hxx\|\.mm') + | grep '\.c$\|\.cpp$\|\.cxx$\|\.h$\|\.hpp$\|\.hxx$\|\.mm$') if [ -z "$FILES" ]; then printf "No affected files, exiting.\n"