From 04fca3ff6ced689f892b91a25daf2713bea30aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20F=C3=B6hring?= Date: Sun, 2 Jun 2024 16:20:56 +0200 Subject: [PATCH] Fix last commit for files in lib Refs #1133 --- lib/credo/check/design/skip_test_without_comment.ex | 2 +- lib/credo/check/refactor/pass_async_in_test_cases.ex | 2 +- lib/credo/check/warning/wrong_test_file_extension.ex | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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: """