aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-03-23 23:05:33 -0700
committerCody Tapscott <topolarity@tapscott.me>2022-03-25 12:27:46 -0700
commit1de63ad79331aec9f53a7a9d95069fd0ca5f66f4 (patch)
tree5644ee454239ef76cb51fea58d8678673f1a6ead /ci
parent7f64f7c9259ba5f67adb386ba55473d4b2b74607 (diff)
downloadzig-1de63ad79331aec9f53a7a9d95069fd0ca5f66f4.tar.gz
zig-1de63ad79331aec9f53a7a9d95069fd0ca5f66f4.zip
zig fmt: Add `--exclude` argument to skip dir/file
This change adds a "--exclude" parameter to zig format, which can be used to make sure that it does not process certain files or folders when recursively walking a directory. To do this, we simply piggy-back on the existing "seen" logic in zig fmt and mark these files/folders as seen before processing begins.
Diffstat (limited to 'ci')
-rwxr-xr-xci/zinc/linux_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/zinc/linux_test.sh b/ci/zinc/linux_test.sh
index 9b0734b170..739d85cff0 100755
--- a/ci/zinc/linux_test.sh
+++ b/ci/zinc/linux_test.sh
@@ -45,7 +45,7 @@ cd $WORKSPACE
# Look for non-conforming code formatting.
# Formatting errors can be fixed by running `zig fmt` on the files printed here.
-$ZIG fmt --check .
+$ZIG fmt --check . --exclude test/compile_errors/
# Build stage2 standalone so that we can test stage2 against stage2 compiler-rt.
$ZIG build -p stage2 -Denable-llvm -Duse-zig-libcxx