We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c75089b commit f2f1188Copy full SHA for f2f1188
1 file changed
scripts/check_c_formatting.sh
@@ -26,7 +26,11 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
26
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
27
SRC_DIR="$ROOT_DIR/src"
28
29
-echo "Checking formatting in $SRC_DIR/.."
+echo "Checking C formatting."
30
31
-find src -type f '(' -name '*.c' -o -name '*.h' ')' ! -name 'utlist.h' -print0 | \
+find . -type f '(' -name '*.c' -o -name '*.h' ')' \
32
+ '(' -path './src/*' -o -path './tests/*' ')' \
33
+ ! -name 'utlist.h' \
34
+ ! -path './tests/Unity/*' \
35
+ -print0 | \
36
xargs -0 -n1 clang-format ${ARGUMENT} -Werror
0 commit comments