Format ejabberd source code using efmt#4452
Format ejabberd source code using efmt#4452badlop wants to merge 5 commits intoprocessone:masterfrom
Conversation
Revert partially "Add Makefile targets to format and indent source code" This reverts commit 3bda858.
Sounds good. Personally I'd still be worried about how that might affect other tools. E.g., when I'm wondering what a specific |
|
I suggest mentioning in the commit message for the "Result of running "make format indent" for the first time" commit how to ignore it: (I realise that technically it is not possible at that point because that file is only added in the next commit, but this is the one that will be seen) |
Maybe using Example: And now: |
Good idea, thanks. |
ejabberd 24.06 introduced experimental support for
make formatusing Rebar3 +rebar3_formatand support formake indentusing Emacs +erlang-mode. Both of them are optional, and applied in small portions of the ejabberd source code.The corresponding documentation was added to the Docs site, including an explanation to format automatically when running
git pushUnfortunately
rebar3_formatis now marked as "archived", so it is time to look for an active replacement.Nowadays I have found two erlang source code formatters:
In some cases that none of them achieves an acceptable formatting, we can use emacs indentation.
This PR:
make formatto use efmtRight now this is a proposal. Please comment alternatives, ideas, problems that you found...