ForgeCredoChecks (forge_credo_checks v0.7.0)

Copy Markdown View Source

Custom Credo checks targeting anti-patterns that LLMs commonly produce.

Stock Credo ships checks for filter |> filter, reject |> reject, map |> join, map |> into, etc. but not the cases where one operation composes with the complementary one, nor the common map-building, sort-then-pick, and map-shape normalization anti-patterns. These checks fill those gaps.

Two-pass Enum chains (suggests Enum.reduce/3)

Hand-rolled map building (suggests Map.new/2)

Wasteful list-extremum patterns

Map shape normalization

LLM tells