I am close to using a behaviour as a pure interface and I feel dirty...

Stanislav Ledenev s.ledenev@REDACTED
Thu Aug 26 23:05:41 CEST 2021


>> Apparently the dialyzer cli tool has `-Wunknown` on by default but the
api doesn't?

Quote (https://erlang.org/doc/man/dialyzer.html):
"
-Wunknown (***)
Let warnings about unknown functions and types affect the exit status of
the command-line version. The default is to ignore warnings about unknown
functions and types when setting the exit status. When using Dialyzer from
Erlang, warnings about unknown functions and types are returned; the
default is not to return these warnings.

*** denotes options that turn on warnings rather than turning them off.
"

чт, 26 авг. 2021 г. в 19:01, Tristan Sloughter <t@REDACTED>:

> I don't remember details and haven't reread this, but I dug up this old
> discussion about rebar3 and dialyzer unknown option:
> https://github.com/erlang/rebar3/issues/1751
>
> Apparently the dialyzer cli tool has `-Wunknown` on by default but the api
> doesn't?
>
> On Thu, Aug 26, 2021, at 07:18, Stanislav Ledenev wrote:
>
> >> Surely Dialyzer will tell you that there is an unknown function in the
> >> module that you analyze.
>
> I guess you are talking about the -Wunknown option?
> It is ok, but this option is turned off by default.
> At the beginning of learning Erlang's tools, in terms of  ease of use, the
> xref tool is more convenient (IMHO of course).
>
> Anyway, Erlang has a bunch of really good tools and understanding them is
> a matter of time.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210827/63a99d61/attachment.htm>


More information about the erlang-questions mailing list