Skip to content

Commit

Permalink
Disable PipeIntoAnonymousFunctions and Apply Credo rules
Browse files Browse the repository at this point in the history
The first is a pattern that's very common within the codebase,
and the second is incompatible with Semigroupoid.apply/2
  • Loading branch information
QuinnWilton committed Jan 24, 2022
1 parent 71370a1 commit 2a907ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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}
]
}
]
Expand Down

0 comments on commit 2a907ef

Please sign in to comment.