Skip to content

Commit

Permalink
Bugfix: Revert format option ignore_file_string to ignore_file_strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Neel Deshmukh authored and Neel Deshmukh committed Oct 6, 2024
1 parent 3768413 commit bc8852e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/dialyxir/dialyzer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ defmodule Dialyxir.Dialyzer do
defp parse_formatter("dialyxir"), do: Dialyxir.Formatter.Dialyxir
defp parse_formatter("github"), do: Dialyxir.Formatter.Github
defp parse_formatter("ignore_file"), do: Dialyxir.Formatter.IgnoreFile
defp parse_formatter("ignore_file_string"), do: Dialyxir.Formatter.IgnoreFileStrict
defp parse_formatter("ignore_file_strict"), do: Dialyxir.Formatter.IgnoreFileStrict
defp parse_formatter("raw"), do: Dialyxir.Formatter.Raw
defp parse_formatter("short"), do: Dialyxir.Formatter.Short

defp parse_formatter(unknown) do
warning("""
Unrecognized formatter #{unknown} received. \
Known formatters are dialyzer, dialyxir, github, ignore_file, ignore_file_string, raw, and short. \
Known formatters are dialyzer, dialyxir, github, ignore_file, ignore_file_strict, raw, and short. \
Falling back to dialyxir.
""")

Expand Down
2 changes: 1 addition & 1 deletion test/mix/tasks/dialyzer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ defmodule Mix.Tasks.DialyzerTest do
{result, 0} = System.cmd("mix", args, env: env)

assert result =~
"Unrecognized formatter foo received. Known formatters are dialyzer, dialyxir, github, ignore_file, ignore_file_string, raw, and short. Falling back to dialyxir."
"Unrecognized formatter foo received. Known formatters are dialyzer, dialyxir, github, ignore_file, ignore_file_strict, raw, and short. Falling back to dialyxir."
end
end

0 comments on commit bc8852e

Please sign in to comment.