Credence.Pattern.NoNestedEnumOnSameEnumerableUnfixable (credence v0.5.0)

Copy Markdown

Detects nested Enum.* calls operating on the same enumerable where the inner call cannot be safely auto-fixed.

Covers patterns such as:

  • Enum.filter inside Enum.map with a cross-referencing lambda parameter
  • Enum.count / Enum.find / Enum.any? / … inside a traversal

These require manual restructuring (e.g. precomputation, a single Enum.reduce/3 pass, or a MapSet-based approach).