You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by va...@apache.org on 2021/09/27 19:02:13 UTC

[couchdb-recon] 11/21: Increase strictness

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to tag 2.5.2
in repository https://gitbox.apache.org/repos/asf/couchdb-recon.git

commit 48b27002b2213a993f694b8eaac6d5cfbcd4c806
Author: Paulo F. Oliveira <pa...@gmail.com>
AuthorDate: Sat Feb 6 02:39:51 2021 +0000

    Increase strictness
---
 .github/workflows/ci.yml | 1 +
 src/recon.erl            | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 978cd10..3071015 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,3 +22,4 @@ jobs:
       - run: rebar3 edoc
       - run: rebar3 eunit
       - run: rebar3 ct
+      - run: rebar3 dialyzer
diff --git a/src/recon.erl b/src/recon.erl
index c085cb0..68e8142 100644
--- a/src/recon.erl
+++ b/src/recon.erl
@@ -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()}.
@@ -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()}]