forked from erlang-ls/erlang_ls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
87 lines (76 loc) · 2.74 KB
/
rebar.config
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{erl_opts, [ debug_info
, warnings_as_errors
, warn_export_vars
, warn_unused_import
, warn_missing_spec_all
]
}.
{deps, [ {jsx, "3.0.0"}
, {redbug, "2.0.6"}
, {yamerl, "0.8.1"}
, {docsh, "0.7.2"}
, {elvis_core, "1.1.1"}
, {rebar3_format, "0.8.2"}
, {erlfmt, {git, "https://github.com/WhatsApp/erlfmt.git", {ref, "2e93fc4a"}}} %% syntaxtools-compat branch is based on this one
, {ephemeral, "2.0.4"}
, {tdiff, "0.1.2"}
, {uuid, "2.0.1", {pkg, uuid_erl}}
]
}.
{shell, [ {apps, [els_lsp]} ]}.
{plugins, [ rebar3_proper
, coveralls
, rebar3_lint
, {rebar3_bsp, {git, "https://github.com/erlang-ls/rebar3_bsp.git", {ref, "master"}}}
]
}.
{minimum_otp_vsn, "21.0"}.
{escript_emu_args, "%%! -connect_all false\n" }.
{escript_incl_extra, [{"els_lsp/priv/snippets/*", "_build/default/lib/"}]}.
{escript_main_app, els_lsp}.
{escript_name, erlang_ls}.
%% Keeping the debug profile as an alias, since many clients were
%% relying on it when starting the server.
{profiles, [ { debug, [] }
, { dap, [ {escript_name, els_dap}
, {escript_main_app, els_dap}
]
}
, { test
, [ { erl_opts, [ nowarn_export_all
, nowarn_missing_spec_all
]
}
, { deps
, [ {meck, "0.9.0"}
, {proper, "1.3.0"}
, {proper_contrib, "0.2.0"}
, {coveralls, "2.2.0"}
]
}
]
}
]
}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{coveralls_coverdata, ["_build/test/cover/ct.coverdata", "_build/test/cover/proper.coverdata"]}.
{coveralls_service_name, "github"}.
{dialyzer, [ {warnings, [unknown]}
, {plt_apps, all_deps}
%% Depending on the OTP version, erl_types (used by
%% els_typer), is either part of hipe or dialyzer.
, {plt_extra_apps, [dialyzer, hipe, mnesia, common_test, debugger]}
]}.
{edoc_opts, [{preprocess, true}]}.
{xref_checks, [ undefined_function_calls
, undefined_functions
, locals_not_used
, deprecated_function_calls
, deprecated_functions
]}.
%% Set xref ignores for functions introduced in OTP 23
{xref_ignores, [{code, get_doc, 1}, {shell_docs, render, 4}]}.
%% Disable warning_as_errors for redbug to avoid deprecation warnings.
{overrides, [ {del, redbug, [{erl_opts, [warnings_as_errors]}]}
]}.