From a7c042dc65b75973c6ed5544e469b60204b3b204 Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Tue, 19 Nov 2024 10:11:00 +0900 Subject: [PATCH] Update rebar.config --- rebar.config | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index 2656fd5..60278b7 100644 --- a/rebar.config +++ b/rebar.config @@ -1,2 +1,36 @@ -{erl_opts, [debug_info]}. -{deps, []}. +{minimum_otp_vsn, "27.1"}. + +{erl_opts, [{i, "src"}, + warnings_as_errors, + warn_export_all, + warn_unused_import]}. + +{xref_checks, [undefined_function_calls, + undefined_functions, + locals_not_used, + deprecated_function_calls, + deprecated_functions]}. + +{dialyzer, [{warnings, [extra_return, + missing_return, + no_unknown + %% unmatched_returns, + %% overspecs, + %% underspecs, + %% specdiffs, + %% error_handling + ]}, + incremental, + {plt_apps, top_level_deps}, + %% {plt_apps, all_apps}, + {plt_location, local}, + {base_plt_location, global}]}. + +{project_plugins, [rebar3_efmt, rebar3_lint]}. +{elvis_output_format, colors}. + +{cover_enabled, true}. + +{validate_app_modules, true}. + +{plugins, [rebar3_hex]}.