diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-03-23 23:05:33 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-03-25 12:27:46 -0700 |
| commit | 1de63ad79331aec9f53a7a9d95069fd0ca5f66f4 (patch) | |
| tree | 5644ee454239ef76cb51fea58d8678673f1a6ead /ci | |
| parent | 7f64f7c9259ba5f67adb386ba55473d4b2b74607 (diff) | |
| download | zig-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-x | ci/zinc/linux_test.sh | 2 |
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 |
