This PR adds erlfmt as a plugin so you can execute rebar3 fmt and then applies the results of rebar3 fmt -w. I put an %% erlfmt-ignore over a couple of functions where I felt that the hand-crafted style was much better (e.g. places where we had dozens of function clauses, and the extra line between each clause significantly improved readability).
I checked that erlfmt did not change the actual compiled output by manually running the following command for every source file. After temporarily adjusting ?NOT_LOADED in erlfdb_nif to omit the ?LINE info I got agreement across the board in src/:
This PR adds
erlfmt
as a plugin so you can executerebar3 fmt
and then applies the results ofrebar3 fmt -w
. I put an%% erlfmt-ignore
over a couple of functions where I felt that the hand-crafted style was much better (e.g. places where we had dozens of function clauses, and the extra line between each clause significantly improved readability).I checked that
erlfmt
did not change the actual compiled output by manually running the following command for every source file. After temporarily adjusting?NOT_LOADED
inerlfdb_nif
to omit the?LINE
info I got agreement across the board in src/: