From 2a907ef6d2cb174a0e29ede6d465d27fb4237a86 Mon Sep 17 00:00:00 2001 From: Quinn Wilton Date: Sun, 23 Jan 2022 17:28:37 -0800 Subject: [PATCH] Disable `PipeIntoAnonymousFunctions` and `Apply` Credo rules The first is a pattern that's very common within the codebase, and the second is incompatible with Semigroupoid.apply/2 --- .credo.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.credo.exs b/.credo.exs index a358359..6ae1554 100644 --- a/.credo.exs +++ b/.credo.exs @@ -9,7 +9,10 @@ checks: [ {Credo.Check.Consistency.TabsOrSpaces}, {Credo.Check.Design.AliasUsage, false}, - {Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 100} + {Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 100}, + {Credo.Check.Readability.PipeIntoAnonymousFunctions, false}, + # This rule incorrectly flags uses of Witchcraft.Semigroupoid.apply/2 + {Credo.Check.Refactor.Apply, false} ] } ]