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?
|
||||||
.*.sw?
|
.*.sw?
|
||||||
/.erlang.mk/
|
/.erlang.mk/
|
||||||
|
/_build/
|
||||||
/ebin/
|
/ebin/
|
||||||
/bin/
|
/bin/
|
||||||
/deps/*
|
/deps/*
|
||||||
|
@ -82,4 +83,4 @@ callgrand*
|
||||||
/bazel-*
|
/bazel-*
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
.idea
|
.idea
|
||||||
|
|
|
@ -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]}.
|
{plugins, [rebar3_format]}.
|
||||||
|
|
||||||
{format, [
|
{format, [
|
||||||
{files, ["src/rabbit_stream_sac_coordinator.*",
|
{files, ["deps/rabbit/src/rabbit_stream_sac_coordinator.*",
|
||||||
"test/rabbit_stream_sac_coordinator_SUITE.erl"]},
|
"deps/rabbit/test/rabbit_stream_sac_coordinator_SUITE.erl",
|
||||||
|
"deps/rabbitmq_stream*/src/*.erl",
|
||||||
|
"deps/rabbitmq_stream*/test/*.erl"
|
||||||
|
]},
|
||||||
{formatter, default_formatter},
|
{formatter, default_formatter},
|
||||||
{options, #{
|
{options, #{
|
||||||
paper => 80,
|
paper => 80,
|
||||||
|
@ -10,4 +13,4 @@
|
||||||
inline_attributes => {when_under, 1},
|
inline_attributes => {when_under, 1},
|
||||||
inline_items => {when_under, 4}
|
inline_items => {when_under, 4}
|
||||||
}}
|
}}
|
||||||
]}.
|
]}.
|
Loading…
Reference in New Issue