Closed elbrujohalcon closed 3 weeks ago
In the scenario below, the rule should not emit a warning.
Run Elvis on…
-module(x). -export([valid/1]). valid(List) -> case lists:all(fun ({K, V}) -> Something = find:something(for, K), check:something(V, Something) end, List) of true -> all_true; false -> found_a_bad_one end.
You'll get…
# src/x.erl [FAIL] - no_match_in_condition (https://github.com/inaka/elvis_core/tree/main/doc_rules/elvis_style/no_match_in_condition.md) - Case statement with a match in its condition found on line 6.
No warnings.
Bug Description
In the scenario below, the rule should not emit a warning.
To Reproduce
Run Elvis on…
You'll get…
Expected Behavior
No warnings.