rebar.config

{cover_export_enabled, true}.
{cover_excl_mods, []}.

{deps, [
  %% OTP app name is `uuid`; hex package name is `uuid_erl` (okeuday's
  %% Erlang UUID library is published to hex under a renamed slot to
  %% leave the short `uuid` name available for the Elixir package).
  {uuid, "2.0.7", {pkg, uuid_erl}}
]}.

{dialyzer, [{plt_extra_apps, []}]}.

{ex_doc, [
  {api_reference, true},
  {extras, ["README.md", "CHANGELOG.md", "LICENSE"]},
  {main, "readme"},
  {prefix_ref_vsn_with_v, false},
  {source_url, "https://github.com/lpgauth/swirl"}
]}.

{erl_opts, [
  debug_info
]}.

{plugins, [rebar3_ex_doc]}.

{hex, [{doc, #{provider => ex_doc}}]}.

{profiles, [
  {compile, [
    {erl_opts, [
      warnings_as_errors,
      warn_export_all,
      warn_export_vars,
      % warn_missing_spec,
      warn_obsolete_guard,
      warn_shadow_vars,
      % warn_untyped_record,
      warn_unused_import,
      warn_unused_vars
    ]}
  ]},
  {test, [
    {deps, [
      {fprofx,
        {git, "https://github.com/lpgauth/fprofx.git", {branch, "otp_19"}}}
    ]},
    {src_dirs, ["src", "test"]}
  ]}
]}.

{xref_checks, [
  deprecated_functions,
  deprecated_function_calls,
  locals_not_used,
  undefined_functions,
  undefined_function_calls
]}.

{xref_ignores, [{swirl_ql_parser, return_error, 2}]}.