Why Qodo trims review comments
A Git provider does not accept a comment above its maximum size. Cutting the end off such a comment to make it fit can remove important content and break the comment’s formatting. Instead, Qodo fits the comment within the limit by choosing what to leave out. A comment within the limit is posted unchanged. Trimming applies only to the review summary comment, not to inline comments on code lines.Comment size limits by Git provider
The table lists the limit Qodo applies on each provider. On a number of providers, this limit is lower than the largest comment the provider accepts.
Qodo counts characters on every provider except Gerrit, where it counts bytes. As a result, on Gerrit, emoji and non-Latin characters use more of the limit than plain ASCII text.
What Qodo trims first
When the review summary comment is over the limit, Qodo removes content in three groups, starting with the least important. Qodo stops as soon as the comment fits, so a comment loses only as much content as it needs to.
If a single finding is larger than the entire limit, Qodo shows that finding in part and adds this notice:
This finding exceeds the comment size limit and was truncated. View the full findings in the Qodo portal.
Warnings for content removed from a comment
Qodo adds one warning for each content group it removed, just above the footer, with the most important first. A trimmed comment shows up to three warnings:N lower severity findings trimmed warning, N is the number of findings Qodo removed. With one finding, the warning reads 1 lower severity finding trimmed.
Each warning ends with a link:
- View findings: Opens the pull request’s findings in the Qodo portal.
- Learn more: Opens this page. If the pull request’s findings are not available in the Qodo portal, every warning shows this link instead of View findings.
Related resources
- Anatomy of a Qodo Code Review: What each part of the review summary comment shows.
- Monitor organization-wide pull request findings: View every finding in the Qodo portal, including findings trimmed from a comment.
- Configure Display settings in the Qodo portal: Choose which comment parts appear in the review summary comment.