Skip to content

Commit ee31649

Browse files
committed
Fix format checker to exclude git submodules
This replaces 'find' with 'git ls-files' to avoid checking source files from submodules like portaudio, mini-gdbstub, and minislirp. Root cause: The find command recursively searches the entire directory tree, including initialized submodules. This causes CI failures when third-party code does not match the project's formatting standards.
1 parent 00cc4ed commit ee31649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/check-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
SOURCES=$(find $(git rev-parse --show-toplevel) | egrep "\.(c|cxx|cpp|h|hpp)\$")
3+
SOURCES=$(git ls-files '*.c' '*.cxx' '*.cpp' '*.h' '*.hpp')
44

55
set -x
66

0 commit comments

Comments
 (0)