Просмотр исходного кода

Merge pull request #6677 from qzhuyan/dev/william/add-light-dialyzer-check

chore: add light dialyzer make target
William Yang 4 лет назад
Родитель
Сommit
202e23987d
2 измененных файлов с 9 добавлено и 0 удалено
  1. 4 0
      Makefile
  2. 5 0
      rebar.config.erl

+ 4 - 0
Makefile

@@ -135,6 +135,10 @@ xref: $(REBAR)
 dialyzer: $(REBAR)
 	@$(REBAR) as check dialyzer
 
+.PHONY: ldialyzer
+ldialyzer: $(REBAR)
+	@$(REBAR) as lcheck dialyzer
+
 COMMON_DEPS := $(REBAR) get-dashboard conf-segs
 
 ## rel target is to create release package without relup

+ 5 - 0
rebar.config.erl

@@ -163,6 +163,11 @@ profiles() ->
        [ {erl_opts, common_compile_opts()}
        , {project_app_dirs, project_app_dirs(ce)}
        ]}
+    , {lcheck,
+       [ {erl_opts, common_compile_opts()}
+       , {project_app_dirs, project_app_dirs(ce)}
+       , {dialyzer, [{warnings, [unmatched_returns, error_handling]}]}
+       ]}
     , {test,
        [ {deps, test_deps()}
        , {erl_opts, common_compile_opts() ++ erl_opts_i(ce) }