Credence.Pattern.NoCaptureFnApply (credence v0.7.1)

Copy Markdown

Detects capture expressions that are immediately applied with .().

When a capture & with positional placeholders (&1, &2, …) is immediately applied via .(), the result is harder to read than inlining the arguments directly into the expression.

Bad

(&Enum.at(&1, col)).(el)
(& &1 + &2).(a, b)

Good

Enum.at(el, col)
a + b