summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Nilsson <kjnilsson@gmail.com>2022-05-18 09:37:38 +0100
committerKarl Nilsson <kjnilsson@gmail.com>2022-05-18 09:37:38 +0100
commit5ede74b44842a896343b03beb62e35ebea17ed1d (patch)
treed6a1a84536c20fbec345a3af53422a1a17b244d7
parent0b477f31cbe9c33a3d30c00b05dc627319932e77 (diff)
downloadrabbitmq-server-git-5ede74b44842a896343b03beb62e35ebea17ed1d.tar.gz
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.
-rw-r--r--.gitignore3
-rw-r--r--deps/rabbitmq_stream/rebar.config12
-rw-r--r--deps/rabbitmq_stream_common/rebar.config12
-rw-r--r--deps/rabbitmq_stream_management/rebar.config12
-rw-r--r--rebar.config (renamed from deps/rabbit/rebar.config)9
5 files changed, 8 insertions, 40 deletions
diff --git a/.gitignore b/.gitignore
index 23b8a497bf..20bffb3fa9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
.sw?
.*.sw?
/.erlang.mk/
+/_build/
/ebin/
/bin/
/deps/*
@@ -82,4 +83,4 @@ callgrand*
/bazel-*
.vscode
-.idea \ No newline at end of file
+.idea
diff --git a/deps/rabbitmq_stream/rebar.config b/deps/rabbitmq_stream/rebar.config
deleted file mode 100644
index 17a6ccdc63..0000000000
--- a/deps/rabbitmq_stream/rebar.config
+++ /dev/null
@@ -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}
- }}
-]}. \ No newline at end of file
diff --git a/deps/rabbitmq_stream_common/rebar.config b/deps/rabbitmq_stream_common/rebar.config
deleted file mode 100644
index 17a6ccdc63..0000000000
--- a/deps/rabbitmq_stream_common/rebar.config
+++ /dev/null
@@ -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}
- }}
-]}. \ No newline at end of file
diff --git a/deps/rabbitmq_stream_management/rebar.config b/deps/rabbitmq_stream_management/rebar.config
deleted file mode 100644
index 17a6ccdc63..0000000000
--- a/deps/rabbitmq_stream_management/rebar.config
+++ /dev/null
@@ -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}
- }}
-]}. \ No newline at end of file
diff --git a/deps/rabbit/rebar.config b/rebar.config
index 345cf9e342..0590027d96 100644
--- a/deps/rabbit/rebar.config
+++ b/rebar.config
@@ -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,
@@ -10,4 +13,4 @@
inline_attributes => {when_under, 1},
inline_items => {when_under, 4}
}}
-]}. \ No newline at end of file
+]}.