[erlang-questions] erl_tidy and specs

Fredrik Andersson sedrik@REDACTED
Fri Feb 7 14:53:22 CET 2014

Hi all

In light of the recent indentation flamewar I thought about looking for
something that could become our version of go fmt and stumbled across
erl_tidy (http://erlang.org/doc/man/erl_tidy.html).

Now it looks good but seems to be old as it does not handle specs correctly.

Given the following file.


-spec spec_error_fun() -> ok.
spec_error_fun() ->

after calling erl_tidy:dir() in the directory where it resides I get the



-spec({{spec_error_fun, 0},
       [{type, 5, 'fun',
         [{type, 5, product, []}, {atom, 5, ok}]}]}).

spec_error_fun() -> ok.

Is this expected or is it a bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140207/dd6fba81/attachment.htm>

More information about the erlang-questions mailing list