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.
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.