Is your feature request related to a problem? Please describe.
Add support for SuggestedFixes.
Describe the solution you'd like
Be able to apply automatically the fixes via --fix
.
Describe alternatives you've considered
Display the suggestion as extra information.
Additional context
type Diagnostic struct { // ... // SuggestedFixes contains suggested fixes for a diagnostic which can be used to perform // edits to a file that address the diagnostic. // TODO(matloob): Should multiple SuggestedFixes be allowed for a diagnostic? // Diagnostics should not contain SuggestedFixes that overlap. // Experimental: This API is experimental and may change in the future. SuggestedFixes []SuggestedFix // optional // ... }
Current linters that support SuggestedFixes
:
goerr113
ruleguard
staticcheck
nlreturn
exportloopref
exhaustive
govet
Related to #1728
If you want to help me:
Latest update: #1779 (comment)
quasilyte, gucio321, SVilgelm, gunturaf, jackwilsdon and 29 moremaxkuzn
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4