<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>I made <a href="https://github.com/fenollp/erlang-formatter">https://github.com/fenollp/erlang-formatter</a> though it depends on OTP's Emacs erlang-mode. </div><div><br></div><div>erlang-mode has been the de facto authority in terms of linting. </div><div>However it has some issues, like when indenting typed record definitions. </div><div><br></div><div>Dropping the dependency on Emacs would be great but again, which dev/CI machine doesn't have Emacs?</div><div><br>On 28 Apr 2016, at 00:46, Tristan Sloughter <<a href="mailto:t@crashfast.com">t@crashfast.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
<title></title>
<div>Short answer: No.<br></div>
<div> </div>
<div>Long answer: No, but I'd love for someone with the time to clean up <a href="https://github.com/tsloughter/erl_tidy">https://github.com/tsloughter/erl_tidy</a> which is a rebar3 plugin named `fmt` around erl_tidy. the erl_tidy code has issues with type specs and other newer syntax and will currently just dump out the AST for those. These fixes would then, of course, need to be submitted upstream to OTP, but this plugin provides a testing ground and hopefully motivation to someone out there :)<br></div>
<div> </div>
<div id="sig19496053"><div class="signature">--<br></div>
<div class="signature">Tristan Sloughter<br></div>
<div class="signature"><a href="mailto:t@crashfast.com">t@crashfast.com</a><br></div>
<div class="signature"> </div>
</div>
<div> </div>
<div> </div>
<div>On Wed, Apr 27, 2016, at 05:37 PM, Mark Bucciarelli wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Hi,<br></div>
<div> </div>
<div>I'm wondering if anyone here uses or knows of a utility like gofmt for Erlang. If you're not familiar with gofmt, it simply reads source code on stdin and writes formatted source code to stdout.<br></div>
<div> </div>
<div>I looked at erl_tidy but cannot see how to make it read stdin.<br></div>
<div> </div>
<div>Thanks,<br></div>
<div> </div>
<div>Mark<br></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>erlang-questions mailing list<br></div>
<div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br></div>
<div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div>
</blockquote><div> </div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>