[erlang-questions] erlfmt?

Pierre Fenoll pierrefenoll@REDACTED
Thu Apr 28 08:24:33 CEST 2016


I made https://github.com/fenollp/erlang-formatter though it depends on OTP's Emacs erlang-mode. 

erlang-mode has been the de facto authority in terms of linting. 
However it has some issues, like when indenting typed record definitions. 

Dropping the dependency on Emacs would be great but again, which dev/CI machine doesn't have Emacs?

> On 28 Apr 2016, at 00:46, Tristan Sloughter <t@REDACTED> wrote:
> 
> Short answer: No.
>  
> Long answer: No, but I'd love for someone with the time to clean up https://github.com/tsloughter/erl_tidy 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 :)
>  
> --
> Tristan Sloughter
> t@REDACTED
>  
>  
>  
>> On Wed, Apr 27, 2016, at 05:37 PM, Mark Bucciarelli wrote:
>> Hi,
>>  
>> 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.
>>  
>> I looked at erl_tidy but cannot see how to make it read stdin.
>>  
>> Thanks,
>>  
>> Mark
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>  
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160428/f994f4dc/attachment.htm>


More information about the erlang-questions mailing list