You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you specify a non-existent file in the ignore_warnings option, then Dialyxir will print a warning:
:ignore_warnings opt specified in mix.exs: .dialyzer_ignore, but file does not exist.
Then, the behaviour depends on whether there are any warnings in the code being analysed. If there are no warnings, Dialyxir exits successfully, but if there are warnings, Dialyxir fails with the following error message instead of printing the warnings:
** (File.Error) could not read file ".dialyzer_ignore": no such file or directory
(elixir) lib/file.ex:353: File.read!/1
lib/dialyxir/project.ex:132: Dialyxir.Project.filter_legacy_warnings/1
lib/dialyxir/formatter.ex:243: anonymous fn/2 in Dialyxir.Formatter.filter_legacy_warnings/2
(elixir) lib/enum.ex:3029: Enum.reject_list/2
lib/dialyxir/formatter.ex:26: Dialyxir.Formatter.format_and_filter/4
lib/dialyxir/dialyzer.ex:53: Dialyxir.Dialyzer.Runner.run/2
lib/dialyxir/dialyzer.ex:75: Dialyxir.Dialyzer.dialyze/3
lib/mix/tasks/dialyzer.ex:267: Mix.Tasks.Dialyzer.run_dialyzer/2
Expected behavior
I would expect the behaviour in face of a missing ignore file to be independent of whether there are any warnings, i.e. either make the warning about the missing file a fatal error in all cases, or print warnings without ignoring any of them.
The text was updated successfully, but these errors were encountered:
Environment
Current behavior
If you specify a non-existent file in the
ignore_warnings
option, then Dialyxir will print a warning:Then, the behaviour depends on whether there are any warnings in the code being analysed. If there are no warnings, Dialyxir exits successfully, but if there are warnings, Dialyxir fails with the following error message instead of printing the warnings:
Expected behavior
I would expect the behaviour in face of a missing ignore file to be independent of whether there are any warnings, i.e. either make the warning about the missing file a fatal error in all cases, or print warnings without ignoring any of them.
The text was updated successfully, but these errors were encountered: