diff --git a/lib/credo/check/design/skip_test_without_comment.ex b/lib/credo/check/design/skip_test_without_comment.ex index c178b26a8..5fefdcbcc 100644 --- a/lib/credo/check/design/skip_test_without_comment.ex +++ b/lib/credo/check/design/skip_test_without_comment.ex @@ -3,7 +3,7 @@ defmodule Credo.Check.Design.SkipTestWithoutComment do id: "EX2003", base_priority: :normal, param_defaults: [ - files: %{included: ["**/*_test.exs"]} + files: %{included: ["test/**/*_test.exs", "apps/**/test/**/*_test.exs"]} ], explanations: [ check: """ diff --git a/lib/credo/check/refactor/pass_async_in_test_cases.ex b/lib/credo/check/refactor/pass_async_in_test_cases.ex index b0fa50428..630811f70 100644 --- a/lib/credo/check/refactor/pass_async_in_test_cases.ex +++ b/lib/credo/check/refactor/pass_async_in_test_cases.ex @@ -3,7 +3,7 @@ defmodule Credo.Check.Refactor.PassAsyncInTestCases do id: "EX4031", base_priority: :normal, param_defaults: [ - files: %{included: ["**/*_test.exs"]} + files: %{included: ["test/**/*_test.exs", "apps/**/test/**/*_test.exs"]} ], explanations: [ check: """ diff --git a/lib/credo/check/warning/wrong_test_file_extension.ex b/lib/credo/check/warning/wrong_test_file_extension.ex index 8aa03701c..19137e753 100644 --- a/lib/credo/check/warning/wrong_test_file_extension.ex +++ b/lib/credo/check/warning/wrong_test_file_extension.ex @@ -3,7 +3,7 @@ defmodule Credo.Check.Warning.WrongTestFileExtension do id: "EX5025", base_priority: :high, param_defaults: [ - files: %{included: ["**/*_test.ex"]} + files: %{included: ["test/**/*_test.ex", "apps/**/test/**/*_test.ex"]} ], explanations: [ check: """