{erl_opts, [debug_info]}.

{deps, []}.

{escript_incl_apps, [erlfmt, getopt]}.

{escript_main_app, erlfmt}.

{escript_name, erlfmt}.

{escript_emu_args, "%%! +sbtu +A0 -noinput -noshell -mode minimal -escript main erlfmt\n"}.

{minimum_otp_vsn, "21"}.

{erlc_compiler, [{recursive, false}]}.

{provider_hooks, [
    {pre, [
        {ct, escriptize}
    ]}
]}.

{dialyzer, [
    {exclude_mods, [rebar3_fmt_prv]},
    {warnings, [unknown]}
]}.

{profiles, [
    {release, [
        {deps, [getopt]},
        {erl_opts, [no_debug_info, deterministic]}
    ]},
    {test, [
        {deps, [getopt]}
    ]}
]}.

{erlfmt, [
    write,
    {files, ["{src,include,test}/*.{hrl,erl,app.src}", "rebar.config"]},
    {exclude_files, ["src/erlfmt_parse.erl"]}
]}.
