Skip to content

Autofix capability of linters #4485

Answered by bombsimon
sahidvelji asked this question in Q&A
Discussion options

You must be logged in to vote

This is related to #1779. The linters you're mentioning supports SuggestedFixes but golangci-lint has its own fix system that was built before it was a part of the analysis package.

The linked issue is a tracking issue to support this. There's currently no automatic way to support this without adding a separate fixer for golangci-lint so it would be better to add supprot for SuggestedFixes.

One reason it was postponed was because it wasn't stable and only a proposed api (old comment). It has since been removed and is now stable (current comment).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bombsimon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants