Skip to content

Commit

Permalink
Merge pull request #88 from paulo-ferraz-oliveira/feature/dialyzer_on_ci
Browse files Browse the repository at this point in the history
Increase strictness
  • Loading branch information
ferd committed Feb 6, 2021
2 parents 51e3a09 + 48b2700 commit 0f416e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ jobs:
- run: rebar3 edoc
- run: rebar3 eunit
- run: rebar3 ct
- run: rebar3 dialyzer
2 changes: 2 additions & 0 deletions src/recon.erl
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ info(PidTerm) ->
%%
%% A fake attribute `binary_memory' is also available to return the
%% amount of memory used by refc binaries for a process.
-dialyzer({no_contracts, info/2}). % ... Overloaded contract for recon:info/2 has overlapping domains
-spec info(pid_term(), info_type()) -> {info_type(), [{info_key(), term()}]}
; (pid_term(), [atom()]) -> [{atom(), term()}]
; (pid_term(), atom()) -> {atom(), term()}.
Expand Down Expand Up @@ -607,6 +608,7 @@ port_info(PortTerm) ->
%% as defined in {@link port_info_type()}, and although the type signature
%% doesn't show it in the generated documentation, individual items
%% accepted by `erlang:port_info/2' are accepted, and lists of them too.
-dialyzer({no_contracts, port_info/2}). % ... Overloaded contract for recon:port_info/2 has overlapping domains
-spec port_info(port_term(), port_info_type()) -> {port_info_type(),
[{port_info_key(), _}]}
; (port_term(), [atom()]) -> [{atom(), term()}]
Expand Down

0 comments on commit 0f416e0

Please sign in to comment.