<div dir="ltr">Hi all<br><br>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 (<a href="http://erlang.org/doc/man/erl_tidy.html">http://erlang.org/doc/man/erl_tidy.html</a>).<br>

<br>Now it looks good but seems to be old as it does not handle specs correctly.<br><br>Given the following file.<br> -module(spec_error).<br><br>-export([spec_error_fun/0]).<br><br>-spec spec_error_fun() -> ok.<br>spec_error_fun() -><br>

    ok.<br><br>after calling erl_tidy:dir() in the directory where it resides I get the following.<br><br>-module(spec_error).<br><br>-export([spec_error_fun/0]).<br><br>-spec({{spec_error_fun, 0},<br>       [{type, 5, 'fun',<br>

         [{type, 5, product, []}, {atom, 5, ok}]}]}).<br><br>spec_error_fun() -> ok.<br><br>Is this expected or is it a bug?<br></div>