forked from erlang-ls/erlang_ls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
113 lines (100 loc) · 2.73 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{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,
{git, "https://github.com/erlang-ls/yamerl.git",
{ref, "9a9f7a2e84554992f2e8e08a8060bfe97776a5b7"}}},
{docsh, "0.7.2"},
{elvis_core, "~> 3.2.2"},
{rebar3_format, "0.8.2"},
{erlfmt, "1.3.0"},
{ephemeral, "2.0.4"},
{tdiff, "0.1.2"},
{uuid, "2.0.1", {pkg, uuid_erl}},
{gradualizer, {git, "https://github.com/josefs/Gradualizer.git", {tag, "0.3.0"}}}
]}.
{shell, [{apps, [els_lsp]}]}.
{plugins, [
rebar3_proper,
coveralls,
{rebar3_lint, "3.2.3"},
{rebar3_bsp, {git, "https://github.com/erlang-ls/rebar3_bsp.git", {ref, "master"}}}
]}.
{project_plugins, [
erlfmt
]}.
{minimum_otp_vsn, "23"}.
{escript_emu_args, "%%! -connect_all false -hidden\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, []},
{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, [
common_test,
debugger,
dialyzer,
eunit,
hipe,
mnesia
]}
]}.
{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 & function of wrangler
{xref_ignores, [
{code, get_doc, 1},
{http_uri, decode, 1},
{shell_docs, render, 4},
{uri_string, percent_decode, 1},
wrangler_handler,
api_wrangler,
wls_code_lens,
wls_highlight,
wls_semantic_tokens,
wls_code_actions,
wls_execute_command_provider
]}.
%% Disable warning_as_errors for redbug to avoid deprecation warnings.
{overrides, [{del, redbug, [{erl_opts, [warnings_as_errors]}]}]}.
{erlfmt, [
write,
{files, ["apps/*/{src,include,test}/*.{erl,hrl,app.src}", "rebar.config", "elvis.config"]}
]}.