Skip to content

Commit 1ca8b36

Browse files
committed
ci: Run cargo fmt for the entire workspace
Currently only `src/` is checked. Add a run that covers everything else. This does mean files in `src/` get formatted twice, but `cargo fmt` doesn't support an `--exclude` option.
1 parent adcb2b8 commit 1ca8b36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/style.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ done < "$tmpfile"
5959

6060
rm "$tmpfile"
6161

62+
# Run once from workspace root to get everything that wasn't handled as an
63+
# individual file.
64+
cargo fmt
65+
6266
if shellcheck --version ; then
6367
# FIXME(ctest): update ctest scripts so we don't need to exclude them
6468
find . -name '*.sh' -not -path './ctest/*' -print0 | xargs -0 shellcheck

0 commit comments

Comments
 (0)