1+ #! /bin/bash
2+
3+ set -e
4+
5+ echo " Checking formatting..."
6+
7+ # Check formatting for each crate
8+ echo " Checking create-and-update..."
9+ cd create-and-update && cargo fmt --check && cd ..
10+
11+ echo " Checking counter/anchor..."
12+ cd counter/anchor && cargo fmt --check && cd ../..
13+
14+ echo " Checking counter/native..."
15+ cd counter/native && cargo fmt --check && cd ../..
16+
17+ echo " Checking counter/pinocchio..."
18+ cd counter/pinocchio && cargo fmt --check && cd ../..
19+
20+ echo " Checking account-comparison..."
21+ cd account-comparison && cargo fmt --check && cd ..
22+
23+ echo " Running clippy..."
24+
25+ # Run clippy for each crate
26+ echo " Running clippy on create-and-update..."
27+ cargo clippy --manifest-path create-and-update/Cargo.toml --all-targets --all-features -- -D warnings
28+
29+ echo " Running clippy on counter/anchor..."
30+ cargo clippy --manifest-path counter/anchor/Cargo.toml --all-targets --all-features -- -D warnings
31+
32+ echo " Running clippy on counter/native..."
33+ cargo clippy --manifest-path counter/native/Cargo.toml --all-targets --all-features -- -D warnings
34+
35+ echo " Running clippy on counter/pinocchio..."
36+ cargo clippy --manifest-path counter/pinocchio/Cargo.toml --all-targets --all-features -- -D warnings
37+
38+ echo " Running clippy on account-comparison..."
39+ cargo clippy --manifest-path account-comparison/Cargo.toml --all-targets --all-features -- -D warnings
40+
41+ echo " Lint checks completed successfully!"
0 commit comments