elixir-styler
elixir-styler copied to clipboard
use existing aliases to rewrite subsequent unaliased references
It's not unreasonable to be working in a large file and not realize a module you're referencing is actually aliased up at the top. It'd be nice if Styler fixed this for us.
# given
alias Foo.Bar
Foo.Bar.baz()
# output
alias Foo.Bar
Bar.baz()