Move all rebar.config files into the root directory
Some tools such as nvim + erlang_ls sometimes change the cwd if they encounter a rebar.config. Here we move all rebar.config files into the root of the project to avoid this and also have a single point for formatting configuration.
This commit is contained in:
parent
0b477f31cb
commit
5ede74b448
|
@ -2,6 +2,7 @@
|
|||
.sw?
|
||||
.*.sw?
|
||||
/.erlang.mk/
|
||||
/_build/
|
||||
/ebin/
|
||||
/bin/
|
||||
/deps/*
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{plugins, [rebar3_format]}.
|
||||
|
||||
{format, [
|
||||
{files, ["src/*.erl", "test/*.erl"]},
|
||||
{formatter, default_formatter},
|
||||
{options, #{
|
||||
paper => 80,
|
||||
ribbon => 70,
|
||||
inline_attributes => {when_under, 1},
|
||||
inline_items => {when_under, 4}
|
||||
}}
|
||||
]}.
|
|
@ -1,12 +0,0 @@
|
|||
{plugins, [rebar3_format]}.
|
||||
|
||||
{format, [
|
||||
{files, ["src/*.erl", "test/*.erl"]},
|
||||
{formatter, default_formatter},
|
||||
{options, #{
|
||||
paper => 80,
|
||||
ribbon => 70,
|
||||
inline_attributes => {when_under, 1},
|
||||
inline_items => {when_under, 4}
|
||||
}}
|
||||
]}.
|
|
@ -1,12 +0,0 @@
|
|||
{plugins, [rebar3_format]}.
|
||||
|
||||
{format, [
|
||||
{files, ["src/*.erl", "test/*.erl"]},
|
||||
{formatter, default_formatter},
|
||||
{options, #{
|
||||
paper => 80,
|
||||
ribbon => 70,
|
||||
inline_attributes => {when_under, 1},
|
||||
inline_items => {when_under, 4}
|
||||
}}
|
||||
]}.
|
|
@ -1,8 +1,11 @@
|
|||
{plugins, [rebar3_format]}.
|
||||
|
||||
{format, [
|
||||
{files, ["src/rabbit_stream_sac_coordinator.*",
|
||||
"test/rabbit_stream_sac_coordinator_SUITE.erl"]},
|
||||
{files, ["deps/rabbit/src/rabbit_stream_sac_coordinator.*",
|
||||
"deps/rabbit/test/rabbit_stream_sac_coordinator_SUITE.erl",
|
||||
"deps/rabbitmq_stream*/src/*.erl",
|
||||
"deps/rabbitmq_stream*/test/*.erl"
|
||||
]},
|
||||
{formatter, default_formatter},
|
||||
{options, #{
|
||||
paper => 80,
|
Loading…
Reference in New Issue