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

Fix issue with expecting default ignore file when checking file size #545

Closed
wants to merge 4 commits into from
Closed
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
12 changes: 9 additions & 3 deletions lib/mix/tasks/dialyzer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,23 @@ defmodule Mix.Tasks.Dialyzer do
ignore_warnings = Dialyxir.Project.dialyzer_ignore_warnings()

cond do
!ignore_warnings && File.exists?(default) ->
!ignore_warnings && File.exists?(default) &&
match?(%{size: size} when size == 0, File.stat!(default)) ->
info("""
No :ignore_warnings opt specified in mix.exs. Using default: #{default}.
No :ignore_warnings opt specified in mix.exs. Using default, but file is empty.
""")

ignore_warnings && File.exists?(ignore_warnings) &&
match?(%{size: size} when size == 0, File.stat!(default)) ->
match?(%{size: size} when size == 0, File.stat!(ignore_warnings)) ->
info("""
:ignore_warnings opt specified in mix.exs: #{ignore_warnings}, but file is empty.
""")

!ignore_warnings && File.exists?(default) ->
info("""
No :ignore_warnings opt specified in mix.exs. Using default: #{default}.
""")

ignore_warnings && File.exists?(ignore_warnings) ->
info("""
ignore_warnings: #{ignore_warnings}
Expand Down
21 changes: 21 additions & 0 deletions test/dialyxir/formatter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
end

describe "exs ignore" do
test "evaluates an ignore file and ignores warnings matching the pattern" do

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 24.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 23.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 26.1

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 24.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 25.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)

Check failure on line 59 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

test exs ignore evaluates an ignore file and ignores warnings matching the pattern (Dialyxir.FormatterTest)
warnings = [
{:warn_return_no_exit, {~c"lib/short_description.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}},
Expand Down Expand Up @@ -92,7 +92,28 @@
end)
end

test "ignores an empty default ignore file" do
in_project(:ignore_default_empty, fn ->
{:ok, remaining, :no_unused_filters} =
Formatter.format_and_filter([], Project, [], [IgnoreFileStrictFormatter])

assert Project.dialyzer_ignore_warnings() == nil
assert remaining == []
end)
end

test "ignores an empty ignore file specified in mix" do
in_project(:ignore_empty, fn ->
{:ok, remaining, :no_unused_filters} =
Formatter.format_and_filter([], Project, [], [IgnoreFileStrictFormatter])

assert Project.dialyzer_ignore_warnings() == "ignore_empty_test.exs"
assert remaining == []
end)
end


test "does not filter lines not matching the pattern" do

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 24.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 27

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 23.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 25.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 26.1

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 24.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 25.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)

Check failure on line 116 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

test exs ignore does not filter lines not matching the pattern (Dialyxir.FormatterTest)
warning =
{:warn_return_no_exit, {~c"a/different_file.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}}
Expand All @@ -105,7 +126,7 @@
end)
end

test "can filter by regex" do

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 24.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 27

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 23.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 24.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 25.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 25.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)

Check failure on line 129 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

test exs ignore can filter by regex (Dialyxir.FormatterTest)
warning =
{:warn_return_no_exit, {~c"a/regex_file.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}}
Expand All @@ -118,7 +139,7 @@
end)
end

test "lists unnecessary skips as warnings if ignoring exit status" do

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 24.3

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 24.3

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 23.3

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 26.1

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 25.3

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 25.3

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)

Check failure on line 142 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 26.1

test exs ignore lists unnecessary skips as warnings if ignoring exit status (Dialyxir.FormatterTest)
warning =
{:warn_return_no_exit, {~c"a/regex_file.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}}
Expand All @@ -133,7 +154,7 @@
end)
end

test "error on unnecessary skips without ignore_exit_status" do

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 27

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 25.3

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 25.3

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 25.3

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)

Check failure on line 157 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

test exs ignore error on unnecessary skips without ignore_exit_status (Dialyxir.FormatterTest)
warning =
{:warn_return_no_exit, {~c"a/regex_file.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}}
Expand All @@ -148,7 +169,7 @@
end)
end

test "overwrite ':list_unused_filters_present'" do

Check failure on line 172 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 24.3

test exs ignore overwrite ':list_unused_filters_present' (Dialyxir.FormatterTest)

Check failure on line 172 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

test exs ignore overwrite ':list_unused_filters_present' (Dialyxir.FormatterTest)

Check failure on line 172 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

test exs ignore overwrite ':list_unused_filters_present' (Dialyxir.FormatterTest)

Check failure on line 172 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 26.1

test exs ignore overwrite ':list_unused_filters_present' (Dialyxir.FormatterTest)

Check failure on line 172 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 25.3

test exs ignore overwrite ':list_unused_filters_present' (Dialyxir.FormatterTest)

Check failure on line 172 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

test exs ignore overwrite ':list_unused_filters_present' (Dialyxir.FormatterTest)

Check failure on line 172 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 26.1

test exs ignore overwrite ':list_unused_filters_present' (Dialyxir.FormatterTest)
warning =
{:warn_return_no_exit, {~c"a/regex_file.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}}
Expand Down Expand Up @@ -177,7 +198,7 @@
end

describe "multiple formatters" do
test "short and github" do

Check failure on line 201 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 24.3

test multiple formatters short and github (Dialyxir.FormatterTest)

Check failure on line 201 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

test multiple formatters short and github (Dialyxir.FormatterTest)

Check failure on line 201 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 26.1

test multiple formatters short and github (Dialyxir.FormatterTest)

Check failure on line 201 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 24.3

test multiple formatters short and github (Dialyxir.FormatterTest)

Check failure on line 201 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

test multiple formatters short and github (Dialyxir.FormatterTest)

Check failure on line 201 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 26.1

test multiple formatters short and github (Dialyxir.FormatterTest)
warning =
{:warn_return_no_exit, {~c"a/different_file.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}}
Expand All @@ -192,7 +213,7 @@
end
end

test "listing unused filter behaves the same for different formats" do

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 24.3

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 27

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 23.3

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.17.2 / OTP 25.3

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)

Check failure on line 216 in test/dialyxir/formatter_test.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.16.3 / OTP 26.1

test listing unused filter behaves the same for different formats (Dialyxir.FormatterTest)
warnings = [
{:warn_return_no_exit, {~c"a/regex_file.ex", 17},
{:no_return, [:only_normal, :format_long, 1]}},
Expand Down
Empty file.
14 changes: 14 additions & 0 deletions test/fixtures/ignore_default_empty/mix.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
defmodule Ignore.Mixfile do

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 23.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 23.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 25.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 26.1

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 25.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_default_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

redefining module Ignore.Mixfile (current version defined in memory)
use Mix.Project

def project do
[
app: :ignore,
version: "0.1.0",
prune_code_paths: false,
dialyzer: [
list_unused_filters: true
]
]
end
end
Empty file.
15 changes: 15 additions & 0 deletions test/fixtures/ignore_empty/mix.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
defmodule Ignore.Mixfile do

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 23.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 23.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 23.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 25.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 26.1

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.13.4 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.14.3 / OTP 25.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.12.3 / OTP 24.3

redefining module Ignore.Mixfile (current version defined in memory)

Check warning on line 1 in test/fixtures/ignore_empty/mix.exs

View workflow job for this annotation

GitHub Actions / Elixir 1.15.7 / OTP 25.3

redefining module Ignore.Mixfile (current version defined in memory)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but there might be an issue with using the same module name Ignore.Mixfile. Maybe you can try changing one of these names, and see if that fixes some of these warnings.

use Mix.Project

def project do
[
app: :ignore,
version: "0.1.0",
prune_code_paths: false,
dialyzer: [
ignore_warnings: "ignore_empty_test.exs",
list_unused_filters: true
]
]
end
end
Loading