Closed yamadashy closed 1 month ago
[!WARNING]
Rate limit exceeded
@yamadashy has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 4 minutes and 15 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. 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](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 8cacda89fe34fcb0c7e5fa132cfdfead09767e9b and fa5fef2670f3eed1264a3b2bf70732f5c6bc01d1.
The changes introduce a new FallbackHighlighter
class to the codebase, enhancing the CodeHighlighter
class by updating the type declaration of the $highlighter
property to include FallbackHighlighter
. The constructor now includes logic to instantiate FallbackHighlighter
when neither Highlighter
nor OldHighlighter
is available. Additionally, the FallbackHighlighter
class provides a method for extracting and formatting code snippets from file content based on specified line numbers.
File | Change Summary |
---|---|
src/CodeHighlighter.php | Updated $highlighter property type to include FallbackHighlighter . Modified constructor to initialize FallbackHighlighter when needed. |
src/FallbackHighlighter.php | Added FallbackHighlighter class with a method getCodeSnippet for extracting and formatting code snippets from file content. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Early access features: enabled
Changes
FallbackHighlighter
class that provides basic code snippet functionality without relying on external highlighting libraries.CodeHighlighter
to useFallbackHighlighter
when neither version of PhpConsoleHighlighter is available.Summary by CodeRabbit
New Features
FallbackHighlighter
that provides a fallback option for code highlighting when other highlighters are unavailable.Bug Fixes