Skip to content

Commit e631395

Browse files
authored
Fix eqwalizer errors (#130)
* Use erl format * Fix eqwalizer errors Specific ignores used in some cases * Fix eqwalizer errors Specific ignores used in some cases * Allow for lack of dynamic() support pre OTP 26
1 parent d2fc905 commit e631395

8 files changed

Lines changed: 457 additions & 241 deletions

File tree

include/aae.hrl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
%%%============================================================================
2+
%%% Non-configurable defaults
3+
%%%============================================================================
4+
15
-define(TREE_SIZE, large).
26
-define(MAGIC, 53).
7+
8+
%%%============================================================================
9+
%%% Tags
10+
%%%============================================================================
311
-define(HEAD_TAG, h).
4-
% Used in leveled as a Tag for head-only objectsm, used in parallel store
512
-define(RIAK_TAG, o_rkv).
6-
% Tag to be used for finding Riakobjects in native store
13+
14+
-if(?OTP_RELEASE < 26).
15+
-type dynamic() :: any().
16+
-endif.

rebar.config

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
]}.
2323

2424
{project_plugins, [
25+
{eqwalizer_rebar3,
26+
{git_subdir, "https://github.com/OpenRiak/eqwalizer.git",
27+
{branch, "openriak-3.4"}, "eqwalizer_rebar3"}},
2528
{erlfmt, {git, "https://github.com/OpenRiak/erlfmt.git", {branch, "main"}}}
2629
]}.
2730

@@ -42,5 +45,8 @@
4245
{deps, [
4346
{leveled,
4447
{git, "https://github.com/martinsumner/leveled",
45-
{branch, "develop-3.4"}}}
48+
{branch, "develop-3.4"}}},
49+
{eqwalizer_support,
50+
{git_subdir, "https://github.com/OpenRiak/eqwalizer.git",
51+
{branch, "openriak-3.4"}, "eqwalizer_support"}}
4652
]}.

0 commit comments

Comments
 (0)