View Source Styler.Style.Aliases (Styler v0.1.0)
Styles up aliases!
This Style will expand multi-aliases and sort aliases within their groups. It also adds a newline after all alias groups.
Rewrites for the following Credo rules:
Credo.Check.Readability.AliasOrder
Credo.Check.Readability.MultiAlias
Credo.Check.Readability.UnnecessaryAliasExpansion
This module is more particular than credo for sorting. Notably, it sorts alias __MODULE__
, whereas Credo allowed
that alias intermixed anywhere in a group.
Link to this section Summary
Functions
Callback implementation for Styler.Style.run/1
.
Link to this section Functions
Callback implementation for Styler.Style.run/1
.