|
1 | | -%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*- |
2 | | -%% ex: ts=4 sw=4 ft=erlang et |
| 1 | +%% == Compiler and Profiles == |
3 | 2 |
|
4 | | -%% == Erlang Compiler == |
5 | | - |
6 | | -%% Erlang compiler options |
7 | 3 | {erl_opts, |
8 | | - [warn_unused_vars, |
9 | | - warn_export_all, |
10 | | - warn_shadow_vars, |
11 | | - warn_unused_import, |
12 | | - warn_unused_function, |
13 | | - warn_bif_clash, |
14 | | - warn_unused_record, |
15 | | - warn_deprecated_function, |
16 | | - warn_obsolete_guard, |
17 | | - strict_validation, |
18 | | - warn_export_vars, |
19 | | - warn_exported_vars, |
20 | | - warn_untyped_record, |
21 | | - debug_info]}. |
22 | | - |
23 | | -%% == Dependencies == |
24 | | - |
25 | | -{deps, |
26 | | - [{mixer, "1.2.0", {pkg, inaka_mixer}}, |
27 | | - trails]}. % checked out |
28 | | - |
29 | | -{project_plugins, [rebar3_lint, rebar3_hank, rebar3_format]}. |
| 4 | + [warn_unused_import, warn_export_vars, warnings_as_errors, verbose, report, debug_info]}. |
| 5 | + |
| 6 | +{minimum_otp_vsn, "23"}. |
| 7 | + |
| 8 | +{alias, [{test, [compile, format, hank, lint, xref, dialyzer]}]}. |
| 9 | + |
| 10 | +%% == Dependencies and plugins == |
| 11 | + |
| 12 | +{deps, [{mixer, "1.2.0", {pkg, inaka_mixer}}, trails]}. % checked out |
| 13 | + |
| 14 | +{project_plugins, |
| 15 | + [{rebar3_hank, "~> 1.4.0"}, {rebar3_format, "~> 1.3.0"}, {rebar3_lint, "~> 3.0.1"}]}. |
| 16 | + |
| 17 | +%% == Format == |
| 18 | + |
| 19 | +{format, [{files, ["*.config", "src/*"]}]}. |
| 20 | + |
| 21 | +%% == Hank == |
| 22 | + |
| 23 | +{hank, [{ignore, ["_build/**", "_checkouts"]}]}. |
| 24 | + |
| 25 | +%% == Dialyzer + XRef == |
| 26 | + |
| 27 | +{dialyzer, |
| 28 | + [{warnings, [no_return, underspecs, unmatched_returns, error_handling, unknown]}]}. |
| 29 | + |
| 30 | +{xref_checks, |
| 31 | + [undefined_function_calls, deprecated_function_calls, deprecated_functions]}. |
| 32 | + |
| 33 | +{xref_extra_paths, ["test/**"]}. |
30 | 34 |
|
31 | 35 | %% == Shell (for interactive example) == |
32 | 36 |
|
|
38 | 42 | [{include_src, false}, |
39 | 43 | {extended_start_script, true}, |
40 | 44 | {release, {example, "0.1"}, [example, sasl]}, |
41 | | - {sys_config, "rel/sys.config"}]}. |
42 | | - |
43 | | -%% == Alias == |
44 | | - |
45 | | -{alias, [{test, [dialyzer, lint, hank]}]}. |
46 | | - |
47 | | -%% == hank == |
48 | | - |
49 | | -{hank, [ |
50 | | - {ignore, [ |
51 | | - "_build/**", |
52 | | - "_checkouts/**" |
53 | | - ]} |
54 | | -]}. |
| 45 | + {sys_config, "rel/sys.config"}, |
| 46 | + {vm_args, "rel/vm.args"}]}. |
0 commit comments