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 1, 2024
1 parent 492502b commit 33f25dd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dialyzer.exs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ defmodule Dialyzer do
# may be resolved in https://github.com/elixir-lang/elixir/issues/9465
defp filter(
dialyzer_warning =
{:warn_failing_call, {~c"lib/logger.ex", 931},
{:warn_failing_call, {~c"lib/logger.ex", {931, 50}},
{:call, [Logger, :__do_log__, _, [3], :only_sig, _, _, {false, :none}]}}
),
do:
Expand All @@ -208,7 +208,7 @@ defmodule Dialyzer do
# discussed in https://github.com/elixir-lang/elixir/issues/11092
defp filter(
dialyzer_warning =
{:warn_matching, {~c"lib/calendar/time.ex", 804},
{:warn_matching, {~c"lib/calendar/time.ex", {804, 16}},
{:pattern_match,
[
~c"pattern {'error', _reason@1}",
Expand All @@ -222,7 +222,7 @@ defmodule Dialyzer do

defp filter(
dialyzer_warning =
{:warn_matching, {~c"lib/calendar/date_range.ex", 201},
{:warn_matching, {~c"lib/calendar/date_range.ex", {201, 10}},
{:pattern_match_cov,
[
~c"pattern _date_range@1 = \#{'__struct__':='Elixir.Date.Range', 'first_in_iso_days':=_first_days@1, 'last_in_iso_days':=_last_days@1}",
Expand Down Expand Up @@ -309,7 +309,7 @@ defmodule Dialyzer do

defp filter(
dialyzer_warning =
{:warn_matching, {~c"lib/dynamic_supervisor.ex", 464},
{:warn_matching, {~c"lib/dynamic_supervisor.ex", {464, 8}},
{:pattern_match_cov,
[
~c"variable _other@1",
Expand All @@ -323,7 +323,7 @@ defmodule Dialyzer do

defp filter(
dialyzer_warning =
{:warn_matching, {~c"lib/mix/utils.ex", 781},
{:warn_matching, {~c"lib/mix/utils.ex", {781, 8}},
{:pattern_match,
[
~c"pattern 'nil'",
Expand All @@ -337,7 +337,7 @@ defmodule Dialyzer do

defp filter(
dialyzer_warning =
{:warn_matching, {~c"lib/iex/helpers.ex", 706},
{:warn_matching, {~c"lib/iex/helpers.ex", {706, 8}},
{:pattern_match,
[
~c"pattern <__key@1, 'nil'>",
Expand All @@ -351,10 +351,10 @@ defmodule Dialyzer do

defp filter(
dialyzer_warning =
{:warn_matching, {~c"lib/kernel.ex", line},
{:warn_matching, {~c"lib/kernel.ex", location},
{:pattern_match, [~c"pattern 'false'", ~c"'true'"]}}
)
when line in [2089, 3648, 4051, 4148, 4535],
when location in [{2089, 15}, {3648, 17}, {4051, 13}, {4148, 13}, {4535, 15}],
do: filtered(comment: "inlined bootstrap check stuff", id: @id, data: dialyzer_warning)

@id __ENV__.line
Expand Down Expand Up @@ -534,7 +534,7 @@ defmodule Dialyzer do
expected_counts = Map.put(expected_counts, @id, 1)

defp filter(
dialyzer_warning = {:warn_return_no_exit, {~c"lib/iex/cli.ex", 112}, {:no_return, [:only_normal]}}
dialyzer_warning = {:warn_return_no_exit, {~c"lib/iex/cli.ex", {112, 16}}, {:no_return, [:only_normal]}}
),
do: filtered(comment: "not annotated exit", id: @id, data: dialyzer_warning)

Expand Down

0 comments on commit 33f25dd

Please sign in to comment.