Skip to content

Make __CARGO_FIX_YOLO=1 a command line flag #11361

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

Open
hydrogen602 opened this issue Aug 20, 2023 · 1 comment
Open

Make __CARGO_FIX_YOLO=1 a command line flag #11361

hydrogen602 opened this issue Aug 20, 2023 · 1 comment
Labels
C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages

Comments

@hydrogen602
Copy link

Description

Hello All,

From what I understand right now, to make clippy try to do all fixes, the environment flag __CARGO_FIX_YOLO=1 needs to be set. I was wondering, to increase ease of use, if it would be possible to turn this into a command line flag instead like --fix-yolo in order to make this discoverable by the CLI? Right now this feature of clippy can only be found on stackoverflow or other forums. It might also be worth replacing the name yolo to make it more accessible for people who don't live in an english-speaking culture, though it is quite funny.

Version

No response

Additional Labels

@rustbot label +C-enhancement

@rustbot rustbot added the C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages label Aug 20, 2023
@Alexendoo
Copy link
Member

See also rust-lang/cargo#13028, it's not intended for public use as I understand the situation. cargo fix would need to tolerate failures when applying non machine applicable suggestions, currently it will ask you to report a bug if any suggestion fails to apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages
Projects
None yet
Development

No branches or pull requests

3 participants