%% -*- erlang -*-
{erl_opts, [debug_info]}.
{deps, []}.
{minimum_otp_vsn, "26"}.

{project_plugins, [rebar3_lint, erlfmt, rebar3_ex_doc, rebar3_hex]}.

{alias, [{check, [fmt, lint, dialyzer, xref, ct, cover]}]}.
{profiles, [
    {test, [
        {erl_opts, [debug_info, warn_missing_specs]},
        {cover_enabled, true},
        {cover_opts, [verbose]},
        {xref_checks, [
            undefined_function_calls,
            undefined_functions,
            locals_not_used
        ]},
        {dialyzer, [{warnings, [unmatched_returns, error_handling]}]},
        {erlfmt, [check]}
    ]}
]}.

{elvis, [
    #{
        dirs => ["src/**", "test/**"],
        filter => "*.erl",
        ruleset => erl_files,
        rules => [{elvis_style, no_throw, disable}]
    },
    #{
        dirs => ["."],
        filter => "rebar.config",
        ruleset => rebar_config
    }
]}.

{ex_doc, [
    {main, "README.md"},
    {extras, ["README.md", "LICENSE.md"]},
    {source_url, "https://github.com/sg2342/ekeyx"},
    {homepage_url, "https://github.com/sg2342/ekeyx"},
    {prefix_ref_vsn_with_v, false}
]}.

{hex, [{doc, ex_doc}]}.
