Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- **The build without Tree-sitter compiles again, and CI keeps it that way (#793).** `cargo build --no-default-features` (regex extraction only, documented in the README) failed because the edge types lived in the Tree-sitter module; they are shared now. Running its tests showed that the regex extractor skipped `pub(crate)`, `pub(super)` and `pub(in ..)` items and read `const fn name` as a constant called `fn`; both are fixed. CI lints and tests this configuration in the `Check` job.

- **The unused file bundling engine is removed (#792).** About 1,100 lines of directory and language grouping for LLM batches were never called by `cora review` or `cora scan`, although the roadmap called the feature done and `.cora.yaml` has a `bundling:` section. The engine, `extract_added_lines` and the data types only it used are gone; the `bundling:` keys are still accepted (they never had an effect) so an existing config keeps loading, and the docs and the roadmap say so. Large diffs are split by `review.max_chunk_chars`.

- **`cora dead-code`, `callers` and `impact` see functions passed as values and functions named in serde attributes (#802).** The Rust extractor recorded a call only for a `call_expression` and inside macros, so `.map(helper)`, `.and_then(Type::make)` and `#[serde(default = "default_true")]` made the function look unused. On this repository `cora dead-code` went from 43 findings, none of them dead code, to the 5 that are (the unwired bundling engine of #792), and `callers` now lists the function that passes another one as a value. A variable that merely has the name of a function (a parameter, a `let`, a pattern binding) is not recorded. The first `cora index` after the upgrade re-extracts every file once (#803).

- **`cora index` re-extracts every file once after an extractor change (#803).** A file was skipped when its `mtime:size` matched, so an upgrade that improved an extractor (the Ruby nesting of #791, for example) never reached the files that had not changed, until someone ran `cora index --rebuild`. The fingerprint now carries an extractor version, so the first `cora index` after such an upgrade re-extracts all files once; later runs skip unchanged files as before.
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ review:

## Bundling

> **Deprecation notice:** as of the current release, `cora scan` does **not** read this section — batch sizing is governed by `--batch-files` (default 20) and an internal ~60,000-character batch budget. These keys are parsed but have no effect on `cora scan`. They are kept for backward compatibility; do not rely on them.
> **Deprecated, no effect:** the file grouping engine these keys configured was never called by `cora review` or `cora scan` and has been removed (#792). The keys are still accepted so an existing `.cora.yaml` keeps loading. Large diffs are split by a character budget (`review.max_chunk_chars`, see [Large Diffs](#large-diffs)); `cora scan` batches by `--batch-files` (default 20) and an internal ~60,000-character budget.

```yaml
bundling:
Expand Down
2 changes: 1 addition & 1 deletion docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Demand-gated — we build what people actually need. Track progress on [GitHub I
## v0.4 — Deterministic Engine Pipeline

- [#116](https://github.com/codecoradev/cora-code/issues/116) Deterministic rule engine — 12 built-in rules — ✓ Done
- [#115](https://github.com/codecoradev/cora-code/issues/115) File bundling — parallel per-bundle review — ✓ Done
- [#115](https://github.com/codecoradev/cora-code/issues/115) File bundling — the grouping engine was written but never wired into review; removed in #792 (large diffs are chunked by a character budget instead, #733) — ✗ Removed
- [#114](https://github.com/codecoradev/cora-code/issues/114) AST-based cross-file dependency extraction — ✓ Done
- [#159](https://github.com/codecoradev/cora-code/issues/159) Hunk header regex panic fix + 5MB diff support — ✓ Done

Expand Down
Loading
Loading