mgechev / revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
https://revive.run
MIT License
4.69k stars 273 forks source link

Ignore dot import aliases in git push in import-alias-naming rule #937

Closed denisvmedia closed 7 months ago

denisvmedia commented 8 months ago

Is your feature request related to a problem? Please describe. Dot import aliases (import . "pkg/some") is a special feature in go. import-alias-naming rule was not meant to deal with special import aliases (thus it ignores _). Unfortunately, . import alias sneaked away from my focus.

Describe the solution you'd like Ignore . alias in the code.

Describe alternatives you've considered In golangci-lint it is possible to ignore this issue specifically, but it should be a part of revive as an easy and clean solution.

Additional context I will provide a PR.

denisvmedia commented 8 months ago

cc @chavacava

denisvmedia commented 7 months ago

cc @mgechev