Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checking different aliases for the same package #7

Open
Rodge0 opened this issue Dec 7, 2021 · 0 comments
Open

checking different aliases for the same package #7

Rodge0 opened this issue Dec 7, 2021 · 0 comments

Comments

@Rodge0
Copy link

Rodge0 commented Dec 7, 2021

Problem:

Importas uses rules to standardize package aliases. But as the project gets bigger, there will be more and more rules and it is difficult to maintain. There may be cases where the same package has different aliases because this package is not covered by the rules. Importas cannot handle this situation because it does not support checking whether there are different aliases for the same package in different go files or in same go file without rules.

solution you'd like.

Checking whether there are different aliases for the same package before checking the aliases according to the importas rules.
Like this :

144870293-cd6b29dd-4be0-4be6-b26c-ed62983921dc
144870344-a8bae3a3-d739-4743-b188-8db0dfb8b4d7

This little implement, https://github.com/Rodge0/samealias, maybe useful.

Appreciate!

@Rodge0 Rodge0 changed the title supports checking different aliases for the same package checking different aliases for the same package Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant