%% -*- mode: Erlang; fill-column: 80; comment-column: 75; -*-
%% Dependencies ================================================================
{deps, [{bbmustache, "~>1.10"}]}.

%% Compiler Options ============================================================
{erl_opts, [debug_info, warnings_as_errors, inline]}.

%% Profiles ====================================================================

{profiles, [{test, [{erl_opts, [nowarn_export_all]}]},
            {docs, [{edoc_opts, [{preprocess, true}]}]}]}.

{overrides, [{override, bbmustache, [{deps, []}, {plugins, []}]}]}.

{ct_opts, [{cover_spec, "cover.spec"},
           {ct_hooks, [cth_surefire]}]}.

{cover_enabled, true}.
{cover_print_enabled, true}.
{cover_excl_mods, [bin_dtl, erl_script_dtl, extended_bin_dtl,
                   extended_bin_windows_dtl, erl_ini_dtl,
                   bin_windows_dtl, nodetool_dtl, psutil_dtl,
                   bin_windows_ps_dtl, extended_bin_windows_ps_dtl,
                   install_upgrade_escript_dtl,
                   sys_config_dtl, vm_args_dtl, relx]}.

%% ignore warnings about unused exports for functions that are part of
%% the external API for relx.
{xref_ignores, [{relx, release, 3},
                {relx, build_release, 2},
                {relx, build_release, 3},
                {relx, build_tar, 2},
                {relx, build_tar, 3},
                {relx, build_relup, 4},
                {relx, format_error, 1},

                %% probably will want this format for debug logs later
                {rlx_app_info, format, 1},
                {rlx_app_info, format, 2},
                {rlx_state, format, 1},
                {rlx_state, format, 2},
                {rlx_state, dev_mode, 1},

                %% used in tests
                {rlx_app_info, new, 5},
                {rlx_app_info, new, 6},
                {rlx_file_utils, type, 1},
                {rlx_file_utils, write, 2},
                {rlx_release, applications, 1},
                {rlx_release, app_specs, 1},
                {rlx_state, realized_releases, 1},

                {rlx_app_info, format_error, 1},
                {rlx_tar, format_error, 1},
                {rlx_assemble, format_error, 1},
                {rlx_config, format_error, 1},
                {rlx_overlay, format_error, 1},
                {rlx_release, format_error, 1},
                {rlx_relup, format_error, 1},
                {rlx_resolve, format_error, 1},
                {rlx_file_utils, format_error, 1}]}.
