diff options
author | Mark Felder <feld@feld.me> | 2022-11-13 18:45:24 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2022-11-13 18:46:02 -0500 |
commit | 2186e9b62b9c88812a616a7ad0d80f4b10a2deb1 (patch) | |
tree | 5ce235dbc69ab8b7bbf589acee7f6cdab0821ca8 | |
parent | e9c3be262cfa06edb768fe03e216070b37a2d384 (diff) | |
download | pleroma-2186e9b62b9c88812a616a7ad0d80f4b10a2deb1.tar.gz pleroma-2186e9b62b9c88812a616a7ad0d80f4b10a2deb1.zip |
Tell newer Credo it's OK to exit 0 on single with clauses and piping into anonymous functions for now
-rw-r--r-- | .credo.exs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.credo.exs b/.credo.exs index b85898af3..a467f2951 100644 --- 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}, |