From c0ebbae4b85e6aefd0d8fa772e6930add8fa9ba1 Mon Sep 17 00:00:00 2001 From: Tomasz Tomczyk Date: Fri, 24 May 2024 14:16:15 +0100 Subject: [PATCH 1/2] Fix the path for included files --- lib/credo/check/design/skip_test_without_comment.ex | 2 +- lib/credo/check/refactor/pass_async_in_test_cases.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/credo/check/design/skip_test_without_comment.ex b/lib/credo/check/design/skip_test_without_comment.ex index 824f3462f..c178b26a8 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/**/*_test.exs"]} + files: %{included: ["**/*_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 339054efd..b0fa50428 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/**/*_test.exs"]} + files: %{included: ["**/*_test.exs"]} ], explanations: [ check: """ From 7448378f64a01ea761eb11032cd239945bcf40af Mon Sep 17 00:00:00 2001 From: Tomasz Tomczyk Date: Fri, 24 May 2024 14:36:59 +0100 Subject: [PATCH 2/2] One more path --- lib/credo/check/warning/wrong_test_file_extension.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/credo/check/warning/wrong_test_file_extension.ex b/lib/credo/check/warning/wrong_test_file_extension.ex index 5e87296f0..8aa03701c 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/**/*_test.ex"]} + files: %{included: ["**/*_test.ex"]} ], explanations: [ check: """