-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected blank line after %% @private #165
Comments
Definitely a bug. |
Although… Why do you put your edoc comments after the |
I imagined that, some years after starting to write Erlang, I'd come across a formatting tool whose developers I really wanted to annoy 😄. On a serious note, I'll try to find a reference as to why I started doing this. I didn't start this by myself; I remember I saw it somewhere. |
If it's of any consolation, |
Yeah, I know. |
Another example found in the wild: https://github.com/g-andrade/aequitas/blob/master/src/aequitas_category.erl#L176. |
But my source was most surely something more widely used like lager. |
Oh, man! Specs with parentheses!! 🙈 |
😄 long live diversity... What about specs as comments? I'm sure you're not surprised; you've seen much more that I have while working on the tool, for sure... |
In any case, I wouldn't mind (let me know if I should open a new issue) that the tool moved comments from "between the spec and the function" to "above the spec", like so... This -spec resolve(Module :: module(), Host :: dispatcher:host()) ->
{ok, [inet:ip_address()]}.
%% @private
resolve(Module, Host) ->
Module:resolve(Host). would become %% @private
-spec resolve(Module :: module(), Host :: dispatcher:host()) ->
{ok, [inet:ip_address()]}.
resolve(Module, Host) ->
Module:resolve(Host). |
Yeah… that's ye ould edoc style… |
This will be super nice, but I don't know if it's possible at all, without breaking other things. |
@paulo-ferraz-oliveira can you confirm if this is still happening? -module(a_module).
-spec resolve(Module :: module(), Host :: dispatcher:host()) -> {ok, [inet:ip_address()]}.
%% @private
resolve(Module, Host) ->
Module:resolve(Host). |
This seems to have gone away. At least in |
Thanks. |
I usually write my
edoc
related "tag" like soThis is getting formatted to
Is seems like a bug, but I'm not sure.
The text was updated successfully, but these errors were encountered: