Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Revert format option ignore_file_string to ignore_file_strict #547

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading