summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2015-02-27 23:17:24 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2015-05-22 09:53:09 +0200
commit850a8a3dcedaf400a2e9d1afa67c80ebfd370a60 (patch)
tree6946f22c5f109b07d1be60aa07b44d80f28b0df4 /priv
parent094b74e488291156cda8d12fffa6f62750d44f47 (diff)
downloadrebar-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 'priv')
-rw-r--r--priv/shell-completion/bash/rebar6
-rw-r--r--priv/shell-completion/zsh/_rebar5
2 files changed, 9 insertions, 2 deletions
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]' \