logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 2186e9b62b9c88812a616a7ad0d80f4b10a2deb1
parent e9c3be262cfa06edb768fe03e216070b37a2d384
Author: Mark Felder <feld@feld.me>
Date:   Sun, 13 Nov 2022 18:45:24 -0500

Tell newer Credo it's OK to exit 0 on single with clauses and piping into anonymous functions for now

Diffstat:

M.credo.exs2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/.credo.exs b/.credo.exs @@ -83,6 +83,7 @@ # lanodan: I think PreferImplicitTry should be consistency, and the behaviour seems # inconsistent, see: https://github.com/rrrene/credo/issues/224 {Credo.Check.Readability.PreferImplicitTry, false}, + {Credo.Check.Readability.PipeIntoAnonymousFunctions, exit_status: 0}, {Credo.Check.Readability.RedundantBlankLines}, {Credo.Check.Readability.StringSigils}, {Credo.Check.Readability.TrailingBlankLine}, @@ -90,6 +91,7 @@ {Credo.Check.Readability.VariableNames}, {Credo.Check.Readability.Semicolons}, {Credo.Check.Readability.SpaceAfterCommas}, + {Credo.Check.Readability.WithSingleClause, exit_status: 0}, {Credo.Check.Refactor.DoubleBooleanNegation}, {Credo.Check.Refactor.CondStatements}, {Credo.Check.Refactor.CyclomaticComplexity},