Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call rustfmt on checked-in generated code #418

Merged
merged 1 commit into from
Jun 24, 2023
Merged

Conversation

dwrensha
Copy link
Member

The format_generated_files = false configuration option only works on nightly: rust-lang/rustfmt#5080

This means that it's very easy for contributors to call cargo fmt and accidentally include big formatting changes to the generated files.

If we automatically call rustfmt on the generated files before checking them in, we can avoid this problem.

@dwrensha dwrensha merged commit 0305fdf into master Jun 24, 2023
@dwrensha dwrensha deleted the fmt-bootstrap-schemas branch June 24, 2023 13:55
ErikMcClure pushed a commit to Fundament-Software/capstone-rs that referenced this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant