Repository navigation
feat(fetcher): add code_files — top-level-dir ranking + headline file count - #170
Conversation
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… count
`code_files` walks the discovered git repo's index, filters
vendored / generated trees via the family-wide exclusion list, and emits a
ranking of top-level directories by tracked-file count. Files at the repo
root are grouped under `(root)`.
Per shape:
- `Text` — headline file count (`"342 files"`)
- `TextBlock` — `<dir> (<count>)` rows
- `Entries` — same as key/value rows
- `Bars` — same as bar values
- `MarkdownTextBlock` — Markdown bullet list with emphasis on dir names
Splits `src/fetcher/code.rs` into `src/fetcher/code/{mod,todos,files}.rs`,
mirroring the `git/` family layout, and lifts the shared `EXCLUDED_DIRS` /
`is_in_excluded_dir` / `is_regular_file` helpers into `code/mod.rs`.
Refs #164.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
6e4fe21 to
342c2b3
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #170 +/- ##
==========================================
+ Coverage 78.50% 78.53% +0.03%
==========================================
Files 130 131 +1
Lines 24654 24889 +235
==========================================
+ Hits 19354 19547 +193
- Misses 5300 5342 +42
🚀 New features to boost your workflow:
|
Summary
Adds
code_files, a per-repo fetcher that walks the discovered git index,filters vendored / generated trees, and emits a ranking of top-level
directories by tracked-file count. Files at the repo root are grouped
under
(root). Land towards theproject_codebasepreset (#164) as the"structure" body slot.
Splits
src/fetcher/code.rsintosrc/fetcher/code/{mod,todos,files}.rs,mirroring the
git/family layout, and lifts the sharedEXCLUDED_DIRS/is_in_excluded_dir/is_regular_filehelpers intocode/mod.rs.text,text_block,entries,bars,markdown_text_blockPer shape:
Text— headline file count ("342 files")TextBlock—<dir> (<count>)rowsEntries— same as key/value rowsBars— same as bar valuesMarkdownTextBlock— Markdown bullet list with emphasis on dir namesCompatible renderers
textanimated_boot,animated_figlet_morph,animated_postfx,animated_scanlines,animated_splitflap,animated_typewriter,animated_wave,text_ascii,text_plaintext_blocklist_plain, animated_* wrappersentriesgrid_table, animated_* wrappersbarschart_bar,chart_pie,list_ranking, animated_* wrappersmarkdown_text_blocktext_markdownTest plan
cargo test— 905 pass (32 new infetcher::code)cargo clippy --all-targets -- -D warningscleancargo fmt --all -- --checkcleanRefs #164. Ticks the
code_filescheckbox on #62 (will update after merge).🤖 Generated with Claude Code