-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AdRoll/RTI-5174-otp21
[RTI-5174] Move to rebar3 and OTP21
- Loading branch information
Showing
9 changed files
with
214 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ clean: | |
@rebar3 clean -a | ||
|
||
test: | ||
@rebar3 eunit | ||
@rebar3 test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
elvis, | ||
[ | ||
{config, | ||
[#{dirs => ["src"], | ||
filter => "*.erl", | ||
ruleset => erl_files, | ||
rules => [ | ||
{elvis_style, line_length, #{limit => 100}}, | ||
{elvis_style, nesting_level, #{level => 4}}, | ||
%% the default rule included {right, ","} and not {right, "=>"} or {left, "=>"} | ||
{ | ||
elvis_style, | ||
operator_spaces, | ||
#{rules => [{right, "++"}, {left, "++"}, {right, "=>"}, {left, "=>"}]} | ||
} | ||
] | ||
}, | ||
#{dirs => ["."], | ||
filter => "rebar.config", | ||
ruleset => rebar_config | ||
}, | ||
#{dirs => ["."], | ||
filter => "elvis.config", | ||
ruleset => elvis_config | ||
} | ||
] | ||
} | ||
] | ||
} | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{erl_opts, [debug_info]}. | ||
|
||
{deps, [ | ||
{jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "0.15.2"}}} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,44 @@ | ||
% -*- mode: erlang -*- | ||
{erl_opts, [debug_info]}. | ||
{erl_opts, [ | ||
warn_unused_vars, | ||
warn_export_all, | ||
warn_shadow_vars, | ||
warn_unused_import, | ||
warn_unused_function, | ||
warn_bif_clash, | ||
warn_unused_record, | ||
warn_deprecated_function, | ||
warn_obsolete_guard, | ||
strict_validation, | ||
warn_export_vars, | ||
warn_exported_vars, | ||
debug_info | ||
]}. | ||
|
||
{deps, [ | ||
{jiffy, ".*", | ||
{git, "https://github.com/davisp/jiffy.git", {tag, "0.14.11"}}} | ||
]}. | ||
{minimum_otp_vsn, "20"}. | ||
|
||
{cover_enabled, true}. | ||
|
||
{cover_opts, [verbose]}. | ||
|
||
{deps, [{jiffy, "0.15.2"}]}. | ||
|
||
{dialyzer, [ | ||
{warnings, [no_return, error_handling]}, | ||
{plt_apps, top_level_deps}, | ||
{plt_extra_apps, []}, | ||
{plt_location, local}, | ||
{base_plt_apps, [erts, stdlib, kernel, inets, crypto, ssl]}, | ||
{base_plt_location, global} | ||
]}. | ||
|
||
{xref_checks,[ | ||
undefined_function_calls, | ||
locals_not_used, | ||
deprecated_function_calls, | ||
deprecated_functions | ||
]}. | ||
|
||
{alias, [{test, [xref, dialyzer, lint, eunit, cover]}]}. | ||
|
||
{plugins, [{rebar3_lint, "0.1.10"}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
IsRebar3 = erlang:function_exported(rebar3, main, 1), | ||
case IsRebar3 of | ||
false -> | ||
{ok, OldConfig} = file:consult("old.rebar.config"), | ||
OldConfig; | ||
true -> | ||
CONFIG | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters