-
Notifications
You must be signed in to change notification settings - Fork 5
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
Consider adding a fix subcommand in addition to tidy & lint #44
Comments
I have taken a preliminary pass at this in #45. |
How is this different than |
Hmm, that's a good question. My initial thinking was that tidy was for things you always want to apply and fix is for things you might want to apply. Personally I don't have In your experience with |
We have a fairly extensive Although I don't use Given the distinction you outline, I wonder if a more general solution would be the ability to apply labels to particular commands and run commands based on those labels. This would allow someone to have a set of tidiers that they absolutely want to apply no matter what. It would also allow them to have a set of linters where they expect no errors, while having another set where some errors may be expected. It would also allow people to create other groups that might make sense for their workflow, e.g., commands for a particular language. |
Yes, this makes a lot of sense, and is more or less captured in #8. I will update that one to specifically talk about labels. |
I'm going to close this in favor of #8. |
Some tools, notably
golangci-lint
andclippy
, have a mode where they will attempt to semantically modify code to fix linting issues. Running these as part of tidying is almost certainly a mistake, since they could actually make changes you don't want.But having a third mode,
precious fix
, to support this, might be nice.The text was updated successfully, but these errors were encountered: