File: rebar.config

package info (click to toggle)
erlang-meck 0.8.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 380 kB
  • sloc: erlang: 3,263; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{erl_opts, [
    % Erlang releases after 17 don't put R in front of their name, and also
    % require dict() to be written like dict:dict()
    {platform_define, "^R", non_namespaced_types}, % used by meck
    {platform_define, "^[0-9]+", namespaced_types} % used by hamcrest
]}.

{profiles, [
    {test, [
        {erl_opts, [
            debug_info,
            {platform_define, "^R(?!16B03)", cover_empty_compile_opts}
        ]},
        {cover_enabled, true},
        {cover_opts, [verbose]}
    ]},
    {compile, [
        {erl_opts, [
            debug_info,
            warnings_as_errors,
            warn_export_all,
            warn_export_vars,
            warn_shadow_vars,
            warn_obsolete_guard,
            warn_unused_import
        ]}
    ]}
]}.