Hushing Dialyzer for the Inspect protocol

My team uses Dialyzer in “warnings are errors” mode on CI, and hit a bug in the implementation of the Inspect protocol which causes errors like Function inspect/2 has no local return.

This issue was fixed in PR #8841, which hasn’t made it to a release yet.

A StackOverflow post suggests adding code like:

@dialyzer {:nowarn_function, inspect: 2}

to the protocol’s defimpl, but for Inspect that’s not practical since the implementation is in stdlib.

Is there someplace else that skip could be configured?

1 Like

I would expect that an ignore warnings file would work for that. Docs are in the readme:

1 Like