Skip to content

Commit a2189ad

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. (backport <#4454>) (cherry picked from commit 1ca8b36)
1 parent 28e6ae2 commit a2189ad

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
find . -name '*.sh' -print0 | xargs -0 shellcheck
6468
else

0 commit comments

Comments
 (0)