{erl_opts, [debug_info, warnings_as_errors]}.
{deps, []}.

{project_plugins, [rebar3_ex_doc, rebar3_hex, rebar3_proper]}.

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

{ex_doc, [
    {source_url, <<"https://github.com/benoitc/erlang_ws">>},
    {extras, [<<"README.md">>, <<"CHANGELOG.md">>,
              <<"docs/guide.md">>,
              <<"docs/embedding.md">>,
              <<"docs/errors.md">>,
              <<"docs/features.md">>,
              <<"LICENSE">>]},
    {main, <<"README.md">>}
]}.

{profiles, [
    {test, [
        {deps, [{proper, "1.4.0"}]},
        {erl_opts, [debug_info, {d, 'PROPER'}]},
        %% Compile `examples/' into the test code path so
        %% `ws_examples_SUITE' can exercise it.
        {extra_src_dirs, [{"examples", [{recursive, false}]}]}
    ]}
]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.

{dialyzer, [
    {warnings, [
        error_handling,
        unmatched_returns
    ]}
]}.

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