-
Notifications
You must be signed in to change notification settings - Fork 926
config: Disable report_todo by default #798
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
Conversation
I don't even think the feature belongs in rustfmt, but at the very least it should be off by default. |
The motivation for this feature is parity with I'm sympathetic to the argument that this is not really formatting, as such and so shouldn't be on by default, but I can't think of a better place for it to live and I don't believe there is more motivation for turning it off rather than leaving it on. Do you have a use case for why it should be off by default? I'm curious what others think about this too. |
Why it should be off by default: Some examples of projects / organizations with different interpretations from the one in rustfmt:
Why it shouldn't be in rustfmt:: rustfmt is a formatting tool: it takes code in, and spits out better formatted code that abides by conventions. Reporting style deviations belongs in a lint tool. * yes, a formatting tool is all about enforcing conventions. However, these are syntactic rather than semantic; enforcing an interpretation of |
Also, rustfmt currently gives 18 such warnings on its own code base! |
I agree rustfmt is not the ideal place to have this kind of lints. Maybe it is better to have that is clippy ? |
clippy requires nightly which makes it a more difficult tool to recommend. I think a separate tool would make sense. Not sure if there is an existing rustlint but it would make sense I think. In the meantime, I'd just like this disabled :-) |
ping :-) |
I think rustfmt probably should be the tool for doing this, but I'm ok with it not being a default. |
config: Disable report_todo by default
@nrc, rereading Design.md, and I saw this in there:
so apologies for ignoring that. I wonder if the right approach is a family of tools that share a lot of implementation? |
Yeah, I have been considering a less monolithic vision recently. I'm not exactly how it should work and how to make it ergonomic though. |
No description provided.