Skip to content

Commit e70fbcc

Browse files
committed
.ci/check-style: exclude rust from C style checks
Some Rust vendored deps can contain C code. We don't need to lint these. The drivers filter is removed because it does not exist anymore.
1 parent fbd1dd8 commit e70fbcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/check-style

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ if test -t 1; then
2525
fi
2626
fi
2727

28-
if git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} | grep -v -E "(^src/(drivers|ui/fonts)|.*ugui.*|.*base32.*)" | grep -E "^(src|test)" | grep -E "\.(c|h)\$" | xargs -n1 "$CLANGFORMAT" -output-replacements-xml | grep -c "<replacement " >/dev/null; then
28+
if git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} | grep -v -E "(^src/(rust|ui/fonts)|.*ugui.*|.*base32.*)" | grep -E "^(src|test)" | grep -E "\.(c|h)\$" | xargs -n1 "$CLANGFORMAT" -output-replacements-xml | grep -c "<replacement " >/dev/null; then
2929
echo -e "${red}Not $CLANGFORMAT clean${normal}"
3030
# Apply CF to the files
31-
git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} | grep -v -E "(^src/(drivers|ui/fonts)|.*ugui.*|.*base32.*)" | grep -E "^(src|test)" | grep -E "\.(c|h)\$" | xargs -n1 "$CLANGFORMAT" -i
31+
git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} | grep -v -E "(^src/(rust|ui/fonts)|.*ugui.*|.*base32.*)" | grep -E "^(src|test)" | grep -E "\.(c|h)\$" | xargs -n1 "$CLANGFORMAT" -i
3232
# Print list of files that weren't formatted correctly
3333
echo -e "Incorrectly formatted files:"
3434
git --no-pager diff --name-only

0 commit comments

Comments
 (0)