ExFormat v0.1.0 ExFormat View Source

ExFormat formats Elixir source code according to a standard set of rules.

It implements most of the style rules defined in Aleksei Magusev’s style guide.

Link to this section Summary

Functions

Formats the given code string

Link to this section Functions

Formats the given code string.

If the formatting is successful, it returns the formatted code string. Otherwise, it will throw an exception.

Examples

iex> ExFormat.format("   quote(do:  foo.bar(1,2,     3))")
"quote do: foo.bar(1, 2, 3)\\n"