소스 검색

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

chore: add light dialyzer make target
William Yang 4 년 전
부모
커밋
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) }