One function's score across runs
get_function_historyCheck a function's historical CRAP score, coverage, and complexity across past runs to tell whether it is improving, decaying, or regrown.
Instructions
Returns one function's ccn, coverage, crap and flag in every run that measured it, oldest first, plus its ratchet mark. Use it to tell improving from decaying or regrown, and get_function_brief instead to start an edit. history true spawns git log -L capped at 10 commits, and tests true is null unless the lane recorded contexts. name resolves off the newest run that scored path, so a substring such as "eval" fans out to one entry per long name matched, and repo may be any directory under the measured checkout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the bare identifier (classify, or route for a Rust `route cmd : & Cmd`) or the whole long_name get_next_item printed (classify( score , late )); both resolve, exact match first | |
| path | Yes | repo-relative source file, forward slashes | |
| repo | No | path to the scored repo's root (default: the repo the server was started in) | |
| tests | No | also list the tests covering this function (coverage.py contexts), as tests | |
| history | No | also list the commits that touched this function (git log -L), as commits |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | the name argument as given | |
| path | No | the file asked about | |
| schema | No | payload schema version, 1 | |
| functions | No | the functions name resolved to, in store order |