Sergei Elin | 4576409 | 2022-09-23 23:21:31 +0300 | [diff] [blame^] | 1 | %% 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 Yelin | 4ffe763 | 2019-04-18 17:27:46 +0300 | [diff] [blame] | 49 | |
Sergey Yelin | 66777ad | 2020-12-04 13:17:00 +0300 | [diff] [blame] | 50 | {profiles, [ |
| 51 | {test, [ |
Sergei Elin | 4576409 | 2022-09-23 23:21:31 +0300 | [diff] [blame^] | 52 | {deps, [{meck, "0.9.2"}]}, |
Sergey Yelin | 66777ad | 2020-12-04 13:17:00 +0300 | [diff] [blame] | 53 | {eunit_tests, [ |
| 54 | {dir, "test"}, |
| 55 | {dir, "test/gen-erl"} |
| 56 | ]} |
| 57 | ]} |
| 58 | ]}. |