%% vim: set filetype=erlang : -*- erlang -*-

{erl_opts, [
            {platform_define, "^[0-9]+", namespaced_types},
            warnings_as_errors,
            warn_export_all,
            warn_untyped_record
           ]}.

{xref_checks, [
               fail_on_warning,
               undefined_function_calls
              ]}.

{cover_enabled, true}.

{edoc_opts, [
             {doclet, edown_doclet},
             {dialyzer_specs, all},
             {report_missing_type, true},
             {report_type_mismatch, true},
             {pretty_print, erl_pp},
             {preprocess, true}
            ]}.
{validate_app_modules, true}.

{ct_opts, [{dir, "ct"}]}.

{profiles, [{test, [{erl_opts, [export_all]},
                    {deps,
                     [
                      {jsone, "1.2.6"},
                      {mustache_spec, ".*", {git, "git://github.com/soranoba/spec.git", {tag, "v1.1.3-erl"}}}
                     ]},
                    {plugins, [rebar3_raw_deps]}
                   ]},
            {dev, [{deps,
                    [
                     {edown, ".*", {git, "git://github.com/uwiger/edown.git", {branch, "master"}}}
                    ]}
                  ]},
            {bench, [{deps,
                      [
                       {mustache, ".*", {git, "git://github.com/mojombo/mustache.erl", {tag, "v0.1.1"}}}
                      ]}
                    ]}
           ]}.
