<div dir="ltr">We had too many discussions about style on a lengthy open source Erlang project (2600Hz's Kazoo).<div><br></div><div>We have now as part of our CI checks a style-ensuring tool that formats .erl .hrl .app.src .escript<br><div>in the "standard format" of Emacs' erlang-mode.</div><div><br></div><div><a href="https://github.com/fenollp/erlang-formatter">https://github.com/fenollp/erlang-formatter</a> is now in version 1.<br></div><div>We use it daily which helps us redirect our shouting at CircleCI instead of colleagues.</div><div><br></div><div>And shouting is certainly great to redirect</div><div><a href="http://erlang.org/pipermail/erlang-questions/2014-February/076908.html">http://erlang.org/pipermail/erlang-questions/2014-February/076908.html</a><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><br></div><div>This implementation uses emacs > 23 under the hood.</div><div>* It was the fastest & shortest way to implement</div><div>* erlang-mode is the closest thing to a standard there is for formatting</div><div>Some other tools / implementations are listed in the project's README.</div><div><br></div><div>So far this project helped uncover 4 bugs in erlang-mode which I minified & reported.</div><div><br></div><div>I share this in hope that this can help people & tame some shouting.</div><div>A non-Emacs implementation would be amazing (probably faster, more portable).</div><div>With your help this project can turn into a test bed for such an adventure!</div><div><br></div><div>A rebar3 fmt plugin is in the works.</div><div><br></div><div>Please tell me what you think but I don't care about your religious beliefs :)</div><div><br></div><div>Cheers,</div><div>-- </div><div>Pierre Fenoll</div></div><div><br></div></div></div></div>
</div></div></div>