From bc8852ed8aaf99b7cd35a8cc3dbd00865c490c2f Mon Sep 17 00:00:00 2001 From: Neel Deshmukh Date: Sun, 6 Oct 2024 17:39:10 +0530 Subject: [PATCH] Bugfix: Revert format option ignore_file_string to ignore_file_strict --- lib/dialyxir/dialyzer.ex | 4 ++-- test/mix/tasks/dialyzer_test.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dialyxir/dialyzer.ex b/lib/dialyxir/dialyzer.ex index 9171249..a64b00c 100644 --- a/lib/dialyxir/dialyzer.ex +++ b/lib/dialyxir/dialyzer.ex @@ -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. """) diff --git a/test/mix/tasks/dialyzer_test.exs b/test/mix/tasks/dialyzer_test.exs index 01b2434..d606e1f 100644 --- a/test/mix/tasks/dialyzer_test.exs +++ b/test/mix/tasks/dialyzer_test.exs @@ -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