To guarantee the reliability, security, and maintainability of our codebase, we enforce strict quality standards automatically during the development cycle. This satisfies our objective to structure and reliable the technical architecture.
Instead of relying on external tools like SonarQube which are often tailored for other ecosystems, the Rust ecosystem provides powerful, built-in equivalents that we mandate across the entire workspace:
cargo clippy acts as our primary static analysis tool. It catches common mistakes, performance pitfalls, and non-idiomatic code.
-D warnings. This means any warning emitted by Clippy is treated as a hard compilation error. Code with warnings cannot be merged.cargo clippy --all-targets --all-features -- -D warningscargo fmt enforces a consistent code style across all crates in the workspace.
cargo fmt --allOur multi-crate architecture enforces separation of concerns, making unit testing easier.
void-codec and void-protocol precisely encode and decode packets according to the Minecraft specifications.cargo test --workspaceWe automate our quality checks using GitHub Actions. Upon every Pull Request (PR) or push to the main branch, the CI pipeline verifies:
cargo fmt detects unformatted code.cargo clippy detects any lints (deny(warnings) rule).cargo test).This guarantees that main is always in a deployable, robust state, and reduces the review burden on developers by automating stylistic and common mistake detection.