golangci / golangci-lint

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

Add goimports-reviser as a linter option #4824

Closed thelooter closed 5 months ago

thelooter commented 5 months 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 5 months ago

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

ldez commented 5 months ago

Hello,

we already have linters that do the same things:

I recommend using gci instead of goimports inside your configuration.