%-*-Mode:erlang;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
% ex: set ft=erlang fenc=utf-8 sts=4 ts=4 sw=4 et nomod:

{erl_opts,
 [deterministic,
  debug_info]}.

{cover_enabled, true}.

{edoc_opts, [{preprocess, true}]}.

{profiles, [
    {test, [
        {deps, [
            {erlexec, "1.10.0"}
        ]}
    ]},
    {lint, [
        {plugins, [{rebar3_lint, "0.2.0"}]}
    ]}
]}.

{ct_opts, [
    {ct_hooks, [epgsql_cth]}
]}.

{elvis,
  [#{dirs => ["src", "src/*"],
     include_dirs => ["include"],
     filter => "*.erl",
     ruleset => erl_files,
     rules =>
         [{elvis_style, line_length, #{limit => 120}},
          {elvis_style, god_modules, #{ignore => [epgsql, epgsqla, epgsqli, epgsql_sock, epgsql_wire]}},
          {elvis_style, dont_repeat_yourself, #{min_complexity => 11}},
          {elvis_style, state_record_and_type, disable} % epgsql_sock
         ]}
  ]
 }.
