golangci-lint
golangci-lint copied to clipboard
Support SuggestedFixes
Conver the SuggesterFixes to Replacement by:
- applying the fixes to a file in memory
- creating a diff by comparing with original file
- using
ExtractIssuesFromPatch
function to create the issues
@ldez Ok, the PR is ready. I understand that the solution is not the best possible, but I still don't understand how to manually create a Replacement object for a TextEdit. This is kind of workaround
PS: gci
does not provide SuggestedFixes :(
@SVilgelm
PS:
gci
does not provide SuggestedFixes :(
Is that fixed in PR #1490 ? At least a replacement is provided there, so maybe it can be improved from there on after merging?