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

Delete pathless / root-level aliases (alias Foo) #87

Closed
novaugust opened this issue Nov 27, 2023 · 0 comments · Fixed by #93
Closed

Delete pathless / root-level aliases (alias Foo) #87

novaugust opened this issue Nov 27, 2023 · 0 comments · Fixed by #93
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@novaugust
Copy link
Contributor

novaugust commented Nov 27, 2023

There's no reason to use alias with a root-level module name. If we see that, we can just nix the node.

Example Test

assert_style """
alias unquote(Foo)
alias Foo
alias Bar, as: Bop
alias __MODULE__
""",
"""
alias __MODULE__
alias Bar, as: Bop
alias unquote(Foo)
"""
@novaugust novaugust changed the title Delete pathless aliases (alias Foo) Delete pathless / root-level aliases (alias Foo) Nov 27, 2023
@novaugust novaugust added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant