From b07705310ddddcaa80c8ff16438c30a1e9338992 Mon Sep 17 00:00:00 2001 From: Enzo Date: Wed, 15 Jan 2025 22:17:51 +0100 Subject: [PATCH] chore(tools): only issue AliasUsage for app modules (#350) --- .credo.exs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.credo.exs b/.credo.exs index df3115e7..9d4e3c1f 100644 --- a/.credo.exs +++ b/.credo.exs @@ -84,17 +84,10 @@ priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0, - excluded_namespaces: [ - "File", - "IO", - "Inspect", - "Kernel", - "Macro", - "Supervisor", - "Task", - "Version", - "Phoenix" - ] + # Only force aliasing for modules from the project. + # Aliasing modules from external libraries is not enforced, + # and can be done at the discretion of the developer. + only: ~r/^App(Web)?\./ ]}, {Credo.Check.Design.DuplicatedCode, []},