golangci / golangci-lint

Fast linters runner for Go
https://golangci-lint.run
GNU General Public License v3.0
14.84k stars 1.34k forks source link

Add goimports-reviser as a linter option #4824

Closed thelooter closed 2 weeks ago

thelooter commented 2 weeks ago

Welcome

Your feature request related to a problem? Please describe

We currently use goimports-reviser as our import Linter in our Projects. Due to its slight difference to goimports, golangci-lint always complains about the file not being goimport-ed.

Describe the solution you'd like

Add goimports-reviser to the list of supported linters

Describe alternatives you've considered

Switch to goimports: Not really a desired way to go, as in my opinion the imports of goimports-reviser are more readable and organized

Additional context

No response

Supporter

boring-cyborg[bot] commented 2 weeks ago

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

ldez commented 2 weeks ago

Hello,

we already have linters that do the same things:

I recommend using gci instead of goimports inside your configuration.