-
Notifications
You must be signed in to change notification settings - Fork 909
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
Audit command line options #1976
Comments
Rustfmt options:
cargo fmt options:
|
Looking at cargo fmt first. I think having a minimal set of Cargo-like options and then using An alternative would be to support Rustfmt options without the |
We don't currently have unstable command line options, but I think we should and I think the following should be unstable: Otherwise I think the command line flags looks good. I think for both binaries, we should consider the ordering of the flags in the help message. |
And just to be really organised, a TODO list:
|
Proposal for a new CLI, inspired by #1028. The help messages need some work,
Questions:
|
We could remove |
On In order to check formatting on CI, there needs to be an option that returns a failing error code when the source is not formatted. If this is how |
That's not quite the semantics of |
It's generally considered good practice to support defaults as options in case someone wants to incorporate a tool into a frontend or automation harness, so they can just specify Ideally, you also support multiple copies of the same option in a "last one wins" configuration so it's possible for things like the |
231: fix fmt diff for CI r=kinggoesgaming a=Dylan-DPC **I'm submitting a ...** - [x] bug fix - [ ] feature enhancement - [ ] deprecation or removal - [ ] refactor # Description Fixes rustfmt with new changes # Motivation Rustfmt removed `write-mode` from cli options # Tests No changes required # Related Issue(s) [rustfmt commit](rust-lang/rustfmt@5d9f5aa) and [issue](rust-lang/rustfmt#1976) Co-authored-by: Dylan DPC <[email protected]> Co-authored-by: dylan_DPC <[email protected]>
Worth pointing out that this breaks |
This makes ci fail if rustfmt bails because it's unable to format the code. See <rust-lang/rustfmt#1976 (comment)> for discussion of this option.
This makes ci fail if rustfmt bails because it's unable to format the code. See <rust-lang/rustfmt#1976 (comment)> for discussion of this option.
This makes ci fail if rustfmt bails because it's unable to format the code. See <rust-lang/rustfmt#1976 (comment)> for discussion of this option.
Should they all be there? Which should be considered stable vs unstable? Are the arguments the best they should be? Are we missing any?
The text was updated successfully, but these errors were encountered: