You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The frontend uses Husky for pre-commit hooks (frontend/.husky/) but the Rust contracts have no pre-commit enforcement. Add hooks that run cargo fmt --check and cargo clippy on staged .rs files.
Acceptance Criteria
Pre-commit hook script added
cargo fmt --check runs on staged Rust files
cargo clippy -- -D warnings runs on staged Rust files
Description
The frontend uses Husky for pre-commit hooks (
frontend/.husky/) but the Rust contracts have no pre-commit enforcement. Add hooks that runcargo fmt --checkandcargo clippyon staged.rsfiles.Acceptance Criteria
cargo fmt --checkruns on staged Rust filescargo clippy -- -D warningsruns on staged Rust files--no-verifyfor emergencies