From e3d8a7e9fa8a7c3fb789570c2fcc03bd21649cea Mon Sep 17 00:00:00 2001 From: Alexandre Hamez Date: Tue, 25 Feb 2025 15:13:39 +0100 Subject: [PATCH] style: don't check how aliases are used --- .credo.exs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.credo.exs b/.credo.exs index ec0fc91a..27a50b07 100644 --- a/.credo.exs +++ b/.credo.exs @@ -82,8 +82,6 @@ # You can customize the priority of any check # Priority values are: `low, normal, high, higher` # - {Credo.Check.Design.AliasUsage, - [priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]}, {Credo.Check.Design.TagFIXME, []}, # You can also customize the exit_status of each check. # If you don't want TODO comments to cause `mix credo` to fail, just @@ -172,6 +170,7 @@ # {Credo.Check.Consistency.MultiAliasImportRequireUse, []}, {Credo.Check.Consistency.UnusedVariableNames, []}, + {Credo.Check.Design.AliasUsage, [priority: :low, if_nested_deeper_than: 3, if_called_more_often_than: 0]}, {Credo.Check.Design.DuplicatedCode, []}, {Credo.Check.Design.SkipTestWithoutComment, []}, {Credo.Check.Readability.AliasAs, []},