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
>> On Wed, Apr 27, 2016, at 05:37 PM, Mark Bucciarelli wrote:
>> 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.
>> erlang-questions mailing list
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions