erlfmt
erlfmt copied to clipboard
An automated code formatter for Erlang
Ran against this command: markdownlint *.md doc/*.md --disable MD013 MD034 MD010 MD051 MD024 MD029 See a detailed description of the rules is available at https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
It turns out that when running dialyzer through rebar, - it would not by default report unknown types. `erlfmt` (after a series of refactorings such as `abstract_form()` -> `abstract_node()`) ended...
I've got a project where I want to automatically format the code when compiling, so I've added erlfmt as a provider hook. I didn't have any issues with this flow...
Thanks for the very useful project! I opened the following pull request (which may or may not be accepted) to use `erlfmt` on a new RabbitMQ project - https://github.com/rabbitmq/khepri/pull/28 I...
This way the return type matches `error_info()` This is an alternative fix for https://github.com/WhatsApp/erlfmt/pull/324
Here's a formatting issue I've encountered a few times. The distilled code with default settings is the following: ```erlang %% No 100-col overflow: oneliner. ok() -> #{k => v, k...
Currently the [standalone erlfmt executable](https://github.com/WhatsApp/erlfmt#escript) exits with code 0 when formatting fails because the code being formatted has a syntax error in it. That is the same exit code which...
Allows roundtrip conversion from erlfmt:read_nodes() to syntax tools (or erl_parse) and back to erlfmt:format_nodes().
This allows you to format syntax trees that have been synthesized outside erlfmt without forcing the caller to add "text" annotations for all literals in order to print them.