8000 checking different aliases for the same package · Issue #7 · julz/importas · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
checking different aliases for the same package #7
Open
@Rodge0

Description

@Rodge0

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0