Skip to content

Commit a62d39f

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.credo.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
{Credo.Check.Refactor.RejectReject, []},
125125
{Credo.Check.Refactor.FunctionArity, []},
126126
{Credo.Check.Refactor.LongQuoteBlocks, []},
127-
{Credo.Check.Refactor.MatchInCondition, []},
127+
{Credo.Check.Refactor.MatchInCondition, [allow_operators: true]},
128128
{Credo.Check.Refactor.MapJoin, []},
129129
{Credo.Check.Refactor.NegatedConditionsInUnless, []},
130130
{Credo.Check.Refactor.NegatedConditionsWithElse, false},

0 commit comments

Comments
 (0)