View Source Styler.Style.SingleNode (Styler v0.7.3)
Simple 1-1 rewrites all crammed into one module to make for more efficient traversals
Credo Rules addressed:
- Credo.Check.Readability.LargeNumbers
Formatter handles large number (>5 digits) rewrites, but doesn't rewrite typos like
100_000_0
, so it's worthwhile to have styler do this - Credo.Check.Readability.ParenthesesOnZeroArityDefs
- Credo.Check.Refactor.CaseTrivialMatches
Link to this section Summary
Functions
Callback implementation for Styler.Style.run/2
.
Link to this section Functions
Callback implementation for Styler.Style.run/2
.