Skip to main content

rebar.config

{erl_opts, [debug_info, warnings_as_errors]}.

{deps, [
    {quic, "1.3.0"},
    {h2, "0.9.0"},
    {h1, "0.6.2", {pkg, erlang_h1}},
    {instrument, "1.1.3"},
    {hackney, "4.3.0"}
]}.

{project_plugins, [rebar3_ex_doc, rebar3_hex]}.

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

{ex_doc, [
    {extras, [
        {"README.md",          #{title => "Overview"}},
        {"docs/usage.md",      #{title => "Usage Guide"}},
        {"docs/design.md",     #{title => "Design"}},
        {"docs/relay.md",      #{title => "Building a Relay"}},
        {"docs/connect_ip.md", #{title => "CONNECT-IP Guide"}},
        {"docs/api.md",        #{title => "API Reference"}},
        {"docs/features.md",   #{title => "Feature Matrix"}},
        {"CHANGELOG.md",       #{title => "Changelog"}},
        {"LICENSE",            #{title => "License"}}
    ]},
    {main, "README.md"},
    {source_url, "https://github.com/benoitc/erlang_masque"},
    {output, "doc"}
]}.

{profiles, [
    {test, [
        {deps, [{proper, "1.5.0"}]},
        {plugins, [{rebar3_proper, "0.12.1"}]},
        {erl_opts, [debug_info]},
        %% Compile the example modules under test so CT suites can
        %% exercise them without the reader having to `c(...)' by hand.
        {extra_src_dirs, ["examples"]}
    ]}
]}.

{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
]}.