diff --git a/Makefile b/Makefile index d9383bbe6..216ed4686 100644 --- a/Makefile +++ b/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 diff --git a/rebar.config.erl b/rebar.config.erl index 95e16835b..ee472119d 100644 --- a/rebar.config.erl +++ b/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) }