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:
Karl Nilsson 2022-05-18 09:37:38 +01:00
parent 0b477f31cb
commit 5ede74b448
5 changed files with 8 additions and 40 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
.sw?
.*.sw?
/.erlang.mk/
/_build/
/ebin/
/bin/
/deps/*

View File

@ -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}
}}
]}.

View File

@ -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}
}}
]}.

View File

@ -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}
}}
]}.

View File

@ -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,