Skip to content

Commit

Permalink
adding script to format all files
Browse files Browse the repository at this point in the history
Signed-off-by: Reto Achermann <[email protected]>
  • Loading branch information
achreto committed Apr 24, 2024
1 parent a6c3e6b commit 2166b36
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

REPOSITORY_ROOT=$(git rev-parse --show-toplevel)
NR_ROOT="${REPOSITORY_ROOT}/verified-node-replication/src/"

# check if verusfmt is installed
if ! command -v verusfmt &> /dev/null
then
cargo install verusfmt
fi

pushd ${NR_ROOT} > /dev/null
find . -type f -name '*.rs' -exec verusfmt {} \;
popd > /dev/null

0 comments on commit 2166b36

Please sign in to comment.