forked from radixdlt/radixdlt-scrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.sh
executable file
·25 lines (20 loc) · 1001 Bytes
/
check.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
cd "$(dirname "$0")"
(cd sbor; cargo fmt --check --quiet)
(cd sbor-derive; cargo fmt --check --quiet)
(cd sbor-tests; cargo fmt --check --quiet)
(cd scrypto; cargo fmt --check --quiet)
(cd scrypto-abi; cargo fmt --check --quiet)
(cd scrypto-derive; cargo fmt --check --quiet)
(cd scrypto-tests; cargo fmt --check --quiet)
(cd scrypto-unit; cargo fmt --check --quiet)
(cd radix-engine; cargo fmt --check --quiet)
(cd radix-engine-stores; cargo fmt --check --quiet)
(cd simulator; cargo fmt --check --quiet)
(cd transaction; cargo fmt --check --quiet)
(cd assets/blueprints/account; scrypto fmt --check --quiet)
(cd assets/blueprints/faucet; scrypto fmt --check --quiet)
(cd examples; find . -maxdepth 1 -type d \( ! -name . \) -print0 | xargs -0 -n1 -I '{}' scrypto fmt --path {} --check --quiet)
(cd radix-engine/tests/blueprints; find . -maxdepth 1 -type d \( ! -name . \) -print0 | xargs -0 -n1 -I '{}' scrypto fmt --path {} --check --quiet)
echo "Code format check passed!"