Skip to content

Conversation

@calcmogul
Copy link
Member

@calcmogul calcmogul commented Nov 25, 2025

find . -type f -name '*.rs' -not -path './target/*' -exec rustfmt {} --edition 2021 \;

cargo fmt is skipping files in src-core/src/generation/transformers.

[tav@myriad Choreo]$ cargo fmt -- -v | grep Formatting | cut -d ' ' -f 2 | cut -d '/' -f 6- | sort 
src-cli/src/main.rs
src-core/src/error.rs
src-core/src/file_management/diagnostics.rs
src-core/src/file_management/formatter.rs
src-core/src/file_management/mod.rs
src-core/src/file_management/upgrader.rs
src-core/src/generation/generate.rs
src-core/src/generation/heading.rs
src-core/src/generation/intervals.rs
src-core/src/generation/mod.rs
src-core/src/generation/remote.rs
src-core/src/generation/transformers/mod.rs
src-core/src/integration_tests/generate.rs
src-core/src/integration_tests/mod.rs
src-core/src/lib.rs
src-core/src/spec/mod.rs
src-core/src/spec/project.rs
src-core/src/spec/project_schema_version.rs
src-core/src/spec/trajectory.rs
src-core/src/spec/traj_schema_version.rs
src-core/src/spec/upgraders.rs
src-tauri/build.rs
src-tauri/src/api.rs
src-tauri/src/built.rs
src-tauri/src/logging.rs
src-tauri/src/main.rs
src-tauri/src/tauri.rs
trajoptlib/build.rs
trajoptlib/examples/differential.rs
trajoptlib/examples/swerve.rs
trajoptlib/src/error.rs
trajoptlib/src/lib.rs

https://stackoverflow.com/a/62076924 claims rustfmt skips files whose macro_rules! invocations don't produce valid AST nodes.

@github-actions github-actions bot added the component: backend Rust/Tauri backend label Nov 25, 2025
@calcmogul calcmogul merged commit 3884e19 into SleipnirGroup:main Nov 25, 2025
36 of 37 checks passed
@calcmogul calcmogul deleted the run-rustfmt-on-all-files branch November 25, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: backend Rust/Tauri backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant