-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: command (perhaps 'go fix') to apply all safe fixes #73623
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
Comments
This seems like a reasonable feature request. I see that you included One way to implement this would be to produce a multichecker of all the analyses (much like the modernize command, which is a singlechecker for just one analysis), but the cumbersome |
Yes of course one must never blindly commit autofixed code without review. I've seen it first-hand that these fixes are not perfect and sometimes break code. Maybe add a disclaimer in the help text.
Yeah, the current "internal" command gave me a feeling it's not something meant for long-term public consumption.
I agree, it would best fit into the existing (but deprecated) |
One possible concern about a For gopls that would be |
Interesting; I said |
It's slightly concerning to me that it being part of the |
The
modernize
analyzer has this handy CLI command to apply all fixes to a codebase:I would like to request a similar CLI command that does the same, but for all analyzers. The closest command I have found is:
Problem with that command is that it does only one fix per invocation, it needs to be ran multiple times for multiple fixes which is very slow and cumbersome to use.
The text was updated successfully, but these errors were encountered: