build(make): add xref, dialyzer command

This commit is contained in:
JianBo He 2020-12-09 11:31:08 +08:00 committed by JianBo He
parent 1dd7acf682
commit 49d15d974a
3 changed files with 11 additions and 2 deletions

1
.gitignore vendored
View File

@ -35,3 +35,4 @@ Mnesia.*/
_checkouts _checkouts
rebar.config.rendered rebar.config.rendered
/rebar3 /rebar3
rebar.lock

View File

@ -19,6 +19,14 @@ ensure-rebar3:
$(REBAR): ensure-rebar3 $(REBAR): ensure-rebar3
.PHONY: xref
xref:
$(REBAR) xref
.PHONY: dialyzer
dialyzer:
$(REBAR) dialyzer
.PHONY: distclean .PHONY: distclean
distclean: distclean:
@rm -rf _build @rm -rf _build

View File

@ -191,7 +191,7 @@ handle_info(Info, State) ->
{noreply, State}. {noreply, State}.
terminate(_Reason, #state{pool = Pool, id = Id}) -> terminate(_Reason, #state{pool = Pool, id = Id}) ->
gropc:disconnect_worker(Pool, {Pool, Id}), gproc_pool:disconnect_worker(Pool, {Pool, Id}),
ok. ok.
code_change(_OldVsn, State, _Extra) -> code_change(_OldVsn, State, _Extra) ->
@ -253,4 +253,4 @@ flush_stream(Client, StreamRef) ->
flush_stream(Client, StreamRef) flush_stream(Client, StreamRef)
after 0 -> after 0 ->
ok ok
end. end.