From 850a8a3dcedaf400a2e9d1afa67c80ebfd370a60 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 27 Feb 2015 23:17:24 +0100 Subject: 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]} --- priv/shell-completion/bash/rebar | 6 +++++- priv/shell-completion/zsh/_rebar | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'priv') diff --git a/priv/shell-completion/bash/rebar b/priv/shell-completion/bash/rebar index 0baf389..c017d20 100644 --- a/priv/shell-completion/bash/rebar +++ b/priv/shell-completion/bash/rebar @@ -17,14 +17,18 @@ _rebar() --keep-going \ --recursive \ --version" - cmdsnvars="check-deps \ + cmdsnvars=" \ + build-plt \ + check-deps \ clean \ compile \ + check-plt \ create \ create-app \ create-lib \ create-node \ ct \ + dialyze \ doc \ delete-deps \ escriptize \ diff --git a/priv/shell-completion/zsh/_rebar b/priv/shell-completion/zsh/_rebar index 0390881..2ba7cdc 100644 --- a/priv/shell-completion/zsh/_rebar +++ b/priv/shell-completion/zsh/_rebar @@ -28,13 +28,16 @@ _rebar () { case $state in cmd_and_var) _values -S = 'variables' \ + 'dialyze[Analyze the code for discrepancies]' \ + 'build-plt[Build project-specific PLT]' \ + 'check-plt[Check the plt for consistency and rebuild it if it is not up-to-date]' \ 'clean[Clean]' \ 'compile[Compile sources]' \ 'create[Create skel based on template and vars]' \ 'create-app[Create simple app skel]' \ 'create-lib[Create simple lib skel]' \ 'create-node[Create simple node skel]' \ - 'list-template[List avaiavle templates]' \ + 'list-template[List available templates]' \ 'doc[Generate Erlang program documentation]' \ 'check-deps[Display to be fetched dependencies]' \ 'prepare-deps[Fetch and build dependencies]' \ -- cgit v1.2.1