Find orphan code
orphansScan a project for functions, classes, and modules unreachable from its entry points; flag dead, test-only, and uncertain dynamic-dispatch code, judged against an optional goal contract.
Instructions
Functions, classes and modules nothing reachable from the project's entry points uses: dead, test-only or uncertain (dynamic dispatch). Judged against the goal contract when there is one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | goal contract file; default PATH/code-guardian.goal.toml if present | |
| path | Yes | the project directory to read |