action: add baseline mode#1360
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: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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 |
Glass CockpitBase: origin/main Change Surface:
Composition:
Contracts:
Health: 80/100 (B) Review Plan
ReceiptsFull receipt data available in JSON format. |
There was a problem hiding this comment.
Code Review
This pull request introduces a new baseline mode to the tokmd action, updating the documentation, inputs, and outputs accordingly. The implementation in action.yml now supports running tokmd baseline with a single path requirement. Additionally, the Halstead tokenization logic in crates/tokmd-analysis/src/halstead/mod.rs was improved to handle non-ASCII characters correctly by using character vectors instead of byte-indexed string slicing, supported by a new test case. I have no feedback to provide.
7c34802 to
291b449
Compare
Summary
mode: baselineto the root GitHub Actionbaseline-reportoutput pointing totokmd-baseline.jsonValidation
cargo run -p tokmd -- baseline . --output $env:TEMP\\tokmd-baseline-action-smoke.json --force --no-progresscargo test -p tokmd-analysis --features halstead tokenize_handles_non_ascii_after_operatorgit diff --checkcargo fmt-checkcargo xtask publish-surface --jsoncargo xtask publish-surface --json --verify-publishcargo xtask gate --checkcargo deny --all-features check(passed with existing duplicate/advisory warnings)Deferred