ForgeCredoChecks (forge_credo_checks v0.4.0)

Copy Markdown View Source

Custom Credo checks targeting Enum 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 and sort-then-pick 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