rebar3_format
rebar3_format copied to clipboard
Erlang Formatter for Rebar3
@paulo-ferraz-oliveira said… > On a more serious note I find that not being able to express `ignore => [atom()]`, in the options, is hindering. I had to do "`src/module.erl`" (didn't...
Is there any support for the config.src format? When I run the formatter against sys.config.src it puts it the whole config onto a single line - is this format not...
As detected by @awalterschulze on WhatsApp/erlfmt#277, we probably need a new tag format.
Basically, revert this change: https://github.com/AdRoll/rebar3_format/pull/300#discussion_r847337945
**Describe the bug** There seems to be some odd bug when it comes to formatting parameterized macros in a function head. Albeit it a very special use-case it is valid...
### Describe the bug When I run `rebar3 format` for source code that has some syntax error in some function, that function just scapes from source code. ### To Reproduce...
Fixes bugs uncovered by #267. List of changes: - Common utility file for initializing the state and discovering test app - Fix git flags in test_app_SUITE - Made output_dir test...
As defined by Erlang `yecc` and `leex`.
This is the nasty case… ```erlang -define(attrib, some_attrib). -?attrib([foo2/2]). ``` Which produces an error: ```erlang {function_clause, [{erl_recomment,leaf_node_value, [{tree,10,10,macro, {attr,10,[],none}, [],[], [{list,10,10, [{leaf,10,10,[],[], {tree,atom,{attr,10,[],none},attrib}}]}]}], [{file,"erl_recomment.erl"},{line,711}]}, {erl_recomment,check_file_attr_1,2, [{file,"erl_recomment.erl"},{line,282}]}, {erl_recomment,filter_forms,3,[{file,"erl_recomment.erl"},{line,229}]}, {erl_recomment,filter_forms,3,[{file,"erl_recomment.erl"},{line,253}]}, {erl_recomment,recomment_forms,3,[{file,"erl_recomment.erl"},{line,136}]}, {rebar3_formatter,format,4,...
There is a problem with parentheses used in macro calls, not only definitions. The default formatter turns… ```erlang -define(MUL(A, B), A * B). ?MUL((1 + 2), (3 + 4)). ```...