-
Notifications
You must be signed in to change notification settings - Fork 157
ci: rust checkfmt #2189
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
ci: rust checkfmt #2189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you!
If you prefer, we can skip formatting those generated files: rust-lang/rustfmt#2522
Basically you can add a rustfmt.toml
file with:
ignore = [
"src/ast/flatbuffers/ast_generated.rs",
"src/ast/flatbuffers/semantic_generated.rs",
]
For more, see: https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#ignore
I don't request for changes because your solution seems good enough.
Just to echo what @affo said, I would prefer to ignore generated files, but approving anyway. |
15641c5
to
ab8e585
Compare
ab8e585
to
219e295
Compare
I tried the ignore option, got this:
Rebased the PR against master |
Codecov Report
@@ Coverage Diff @@
## master #2189 +/- ##
=======================================
Coverage 53.08% 53.08%
=======================================
Files 287 287
Lines 39006 39006
=======================================
Hits 20705 20705
Misses 16281 16281
Partials 2020 2020 Continue to review full report at Codecov.
|
@yzhang1991 Oh, only available in nightly. Go ahead then 👍 Thank you! |
Done checklist