-
Notifications
You must be signed in to change notification settings - Fork 888
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
[unstable option] error_on_line_overflow #3391
Comments
I would love to have either a |
I really like that idea. I've been struggling lately with the binary nature of the current option, as it (and the default value) are a common source of folks being unaware that there's portions of their codebase that rustfmt isn't able to format at all, but in plenty of cases it wouldn't be viable to make that a hard error either. I'm leaning towards the multi-variant approach, perhaps with a different name to avoid any confusion/binary connotations. If we go that route we can soft-deprecate the current |
I would be interested in working on this if the maintainers still think it's worth doing. I would do the |
That's great, thanks for the offer this is absolutely something we still (desperately) need! As far as implementation goes, I definitely want to go the single option with multiple variant routes; I think the config surface and expected behavior would be too clunky if we had two separate options that essentially control the "level" of the same thing (e.g. if both are set with At a high level the work will involve:
Lines 598 to 615 in a44c7ea
|
I would like to bring up the problem that I have with this option. This is because developers have been unaware that rustfmt is unable to get their code under the default of 100 I would like to propose that there should be a separate option that specifies the margin for line overflow error. For example, the default This would allow us to set a higher margin for line overflow error to reduce the 30 000 lines of rustfmt errors to something manageable in our codebase and work from there incrementally reducing the margin and fixing our code to get a lower margin. |
Documentation for this option says: Is it really? I tried running To reproduce: checkout https://github.com/scylladb/scylla-rust-driver and run |
Tracking issue for error_on_line_overflow
The text was updated successfully, but these errors were encountered: