{erl_opts, [debug_info, warnings_as_errors]}.

{deps, [
    {kura, "~> 2.17"},
    {pgo, "~> 0.20"}
]}.

{project_plugins, [
    erlfmt,
    rebar3_hex,
    rebar3_ex_doc,
    rebar3_lint,
    rebar3_hank,
    covertool,
    {rebar3_audit, "~> 0.2"},
    {rebar3_sbom,
        {git, "https://github.com/Taure/rebar3_sbom.git", {branch, "feat/include-otp-components"}}}
]}.

{covertool, [{coverdata_files, ["eunit.coverdata", "ct.coverdata"]}]}.

{erlfmt, [write]}.

{hank, [
    {ignore, [
        {"test/**", [unnecessary_function_arguments]}
    ]}
]}.

{xref_checks, [
    undefined_function_calls,
    undefined_functions,
    locals_not_used,
    deprecated_function_calls,
    deprecated_functions
]}.

{dialyzer, [
    {warnings, [error_handling, unmatched_returns]},
    {plt_extra_apps, [pgo, kura]}
]}.

{eunit_opts, [verbose]}.

{cover_enabled, true}.

{hex, [
    {doc, #{provider => ex_doc}},
    {include_files, [
        <<"src">>,
        <<"rebar.config">>,
        <<"rebar.lock">>,
        <<"README.md">>,
        <<"LICENSE.md">>
    ]}
]}.

{ex_doc, [
    {source_url, <<"https://github.com/Taure/kura_postgres">>},
    {main, <<"readme">>},
    {extras, [
        <<"README.md">>,
        <<"LICENSE.md">>
    ]}
]}.
