Skip to content

Commit 6effbe2

Browse files
committed
Allow operators in if condition assignment expressions in credo
1 parent a17c6ea commit 6effbe2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.credo.exs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,11 @@
119119
{Credo.Check.Refactor.CyclomaticComplexity, false},
120120
{Credo.Check.Refactor.FilterCount, []},
121121
{Credo.Check.Refactor.FilterFilter, []},
122-
{Credo.Check.Refactor.MatchInCondition, []},
122+
{Credo.Check.Refactor.MatchInCondition, [allow_operators: true]},
123123
{Credo.Check.Refactor.RedundantWithClauseResult, []},
124124
{Credo.Check.Refactor.RejectReject, []},
125125
{Credo.Check.Refactor.FunctionArity, []},
126126
{Credo.Check.Refactor.LongQuoteBlocks, []},
127-
{Credo.Check.Refactor.MatchInCondition, []},
128127
{Credo.Check.Refactor.MapJoin, []},
129128
{Credo.Check.Refactor.NegatedConditionsInUnless, []},
130129
{Credo.Check.Refactor.NegatedConditionsWithElse, false},

0 commit comments

Comments
 (0)