Skip to content

Commit

Permalink
Update dialyzer.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
michallepicki authored Nov 27, 2024
1 parent 2fc65e4 commit 65b55ff
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions dialyzer.exs
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,23 @@ defmodule Dialyzer do
do: filtered(comment: "not annotated exception", id: @id, data: dialyzer_warning)

@id __ENV__.line
expected_counts = Map.put(expected_counts, @id, 1)
expected_counts = Map.put(expected_counts, @id, 2)

defp filter(
dialyzer_warning =
{:warn_return_no_exit, {~c"src/elixir_erl_compiler.erl", _},
{:no_return, [:only_normal, :handle_file_error, 2]}}
),
{:no_return, [:only_normal, function, _]}}
) when function in [:handle_file_error, :incompatible_options],
do: filtered(comment: "not annotated exception", id: @id, data: dialyzer_warning)

@id __ENV__.line
expected_counts = Map.put(expected_counts, @id, 2)

defp filter(
dialyzer_warning =
{:warn_return_no_exit, {~c"src/elixir_erl_compiler.erl", location},
{:no_return, [:only_normal]}}
) when location in [{116, 21}, {118, 21}],
do: filtered(comment: "not annotated exception", id: @id, data: dialyzer_warning)

@id __ENV__.line
Expand Down

0 comments on commit 65b55ff

Please sign in to comment.