blob: c3149b4c08838c289ed032839ba0d3cd32954e55 [file] [log] [blame]
Sergei Elin45764092022-09-23 23:21:31 +03001%% Common project erlang options.
2{erl_opts, [
3
4 % mandatory
5 debug_info,
6 warn_export_all,
7 warn_untyped_record,
8 warn_export_vars,
9
10 % by default
11 warn_unused_record,
12 warn_bif_clash,
13 warn_obsolete_guard,
14 warn_unused_vars,
15 warn_shadow_vars,
16 warn_unused_import,
17 warn_unused_function,
18 warn_deprecated_function
19]}.
20
21%% XRef checks
22{xref_checks, [
23 deprecated_functions_calls,
24 deprecated_functions
25]}.
26
27%% Dialyzer static analyzing
28{dialyzer, [
29 {warnings, [
30 % mandatory
31 unmatched_returns,
32 error_handling,
33 unknown
34 % hardcore mode
35 % overspecs,
36 % underspecs
37 ]},
38 {plt_extra_apps, [ssl, inets, public_key]}
39]}.
40
41{plugins, [
42 {erlfmt, "1.1.0"}
43]}.
44
45{erlfmt, [
46 {print_width, 100},
47 {files, "{src,include,test}/*.{hrl,erl,app.src}"}
48]}.
Sergey Yelin4ffe7632019-04-18 17:27:46 +030049
Sergey Yelin66777ad2020-12-04 13:17:00 +030050{profiles, [
51 {test, [
Sergei Elin45764092022-09-23 23:21:31 +030052 {deps, [{meck, "0.9.2"}]},
Sergey Yelin66777ad2020-12-04 13:17:00 +030053 {eunit_tests, [
54 {dir, "test"},
55 {dir, "test/gen-erl"}
56 ]}
57 ]}
58]}.