diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2015-02-27 23:17:24 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2015-05-22 09:53:09 +0200 |
commit | 850a8a3dcedaf400a2e9d1afa67c80ebfd370a60 (patch) | |
tree | 6946f22c5f109b07d1be60aa07b44d80f28b0df4 /rebar.config.sample | |
parent | 094b74e488291156cda8d12fffa6f62750d44f47 (diff) | |
download | rebar-850a8a3dcedaf400a2e9d1afa67c80ebfd370a60.tar.gz |
Add Dialyzer plugin
Build project-specific PLT
$ rebar build-plt
Check the PLT for consistency and rebuild it if it is not up-to-date
$ rebar check-plt
Analyze the code for discrepancies
$ rebar dialyze
Delete project-specific PLT
$ rebar delete-plt
Valid rebar.config options:
%% Store PLT in ~/.rebar/plt (Default)
{dialyzer_plt_location,shared}
%% Store PLT locally inside the project in .rebar
{dialyzer_plt_location,local}
%% Store PLT in custom directory
{dialyzer_plt_location,"custom_path"}
{dialyzer_plt_extra_apps,[app1,app2]}
{dialyzer_warnings,[unmatched_returns,error_handling]}
Diffstat (limited to 'rebar.config.sample')
-rw-r--r-- | rebar.config.sample | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rebar.config.sample b/rebar.config.sample index b650bc9..41a96a4 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -266,3 +266,19 @@ {xref_queries, [{"(XC - UC) || (XU - X - B" " - (\"mod\":\".*foo\"/\"4\"))",[]}]}. + +%% == Dialyzer == + +%% Store PLT in ~/.rebar/plt (Default) +{dialyzer_plt_location, shared}. + +%% Store PLT locally inside the project in .rebar +{dialyzer_plt_location, local}. + +%% Store PLT in custom directory +{dialyzer_plt_location, "custom_path"}. + +%% Extra apps to include in the PLT +{dialyzer_plt_extra_apps, [app1, app2]}. + +{dialyzer_warnings, [unmatched_returns, error_handling]}. |