Skip to content

chore: workspace source files are not formatted with rustfmt #1292

@Bhanudahiyaa

Description

@Bhanudahiyaa

Summary

Running cargo fmt --check on the current main branch produces 489 formatting diffs across dozens of source files in the workspace. The CI quality gate in CONTRIBUTING.md requires this check to pass before a PR can be merged.

How to Reproduce

git clone https://github.com/mofa-org/mofa.git
cd mofa
cargo fmt --check

Output:

Diff in ... lines for files across mofa-kernel, mofa-foundation, mofa-runtime, mofa-sdk, mofa-monitoring, mofa-plugins, mofa-local-llm, and others.

Expected Behaviour

cargo fmt --check exits with code 0 and produces no diffs.

Notes

cargo clippy --workspace --all-features already passes with zero warnings.

Metadata

Metadata

Assignees

Labels

area/infraBuilds, release pipeline, CI infrastructurehelp wantedExtra attention is neededkind/choreMaintenance, refactor, cleanuppriority/p1High impactrustPull requests that update rust code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions