I want to ignore the dialyzer error "The pattern can never match ...."

I am working on a project from my job.

When I typed mix dialyzer to do the static check for my code. It responsed me with many error messages like “The pattern can never match …”.

But I don’t care the type of these errors because the pattern will match eventually after I continuing developing. I just want to cover all the condition in advance.

How can I tell Dialyzer to ignore these error?

Thanks.

I would try it with a regex like ~r/.*The.pattern.can.never.match.*/ in an ignore file.
Docs: GitHub - jeremyjh/dialyxir: Mix tasks to simplify use of Dialyzer in Elixir projects. and GitHub - jeremyjh/dialyxir: Mix tasks to simplify use of Dialyzer in Elixir projects.

1 Like

Your answer helps a lot.
Thanks.