Credence.Semantic.UndefinedFunction (credence v0.4.1)

Copy Markdown

Fixes compiler warnings about undefined functions with known replacements.

LLMs sometimes use functions that don't exist in the expected module. This rule maintains a mapping of known corrections.

Example

# Warning: Enum.last/1 is undefined or private
list |> Enum.last()

# Fixed:
list |> List.last()