Would it be possible for us to warn when an user declares duplicated aliases in the same scope?
This code, for example:
```
defmodule Test do
alias IO.ANSI
alias IO.ANSI
alias IO.ANSI
def hello do
IO.puts([ANSI.red(), "hey", ANSI.reset()])
end
end
```
Compiles without any warnings, even though two of these aliases are just "dead code".
I've noticed this after seeing some codebases containing files with these duplicated aliases, something that can actually happening sometimes when people solve conflicts and don't review it thoroughly.
Also credo currently does not catch that and I believe a proposal there would also be fine, but I'm not sure why the language couldn't warn in such cases, since this is more like dead code than styling/linting.