{deps, [
    {srly, "0.6.2"}
]}.

{post_hooks, [
    {edoc,
        "ex_doc --config .ex_doc.config --source-url \"https://github.com/msantos/cm17a\" --source-ref \"master\" \"cm17a\" `erl -noshell -s init stop -eval '{ok, [{_,_,X}]} = file:consult(\"src/cm17a.app.src\"), io:format(\"~s\", [proplists:get_value(vsn, X, \"0.0.0\")]).'` _build/default/lib/cm17a/ebin"}
]}.

{edoc_opts, [
    {doclet, edoc_doclet_chunks},
    {layout, edoc_layout_chunks},
    {dir, "_build/default/lib/cm17a/doc"}
]}.

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

{erl_opts, [
    warn_unused_vars,
    warn_export_all,
    warn_shadow_vars,
    warn_unused_import,
    warn_unused_function,
    warn_bif_clash,
    warn_unused_record,
    warn_deprecated_function,
    warn_obsolete_guard,
    strict_validation,
    warn_export_vars,
    warn_exported_vars,
    %warn_missing_spec,
    warn_untyped_record,
    debug_info
]}.

{profiles, [
    {test, [
        {cover_enabled, true},
        {xref_checks, [undefined_function_calls]}
    ]}
]}.
