You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve the two remaining SonarCloud false positives using configuration appropriate to each finding.
Replace ineffective NOSONAR on ValidateGeneratedCommandImplementation with pragma warning disable/restore S2699 scoped to that method. The generator harness still verifies diagnostics and four generated sources; Sonar's metrics collector skips NOSONAR metadata for test projects.
Exclude the four embedded VB generation templates/fragments through .sonarcloud.properties. Automatic analysis otherwise builds a synthetic orphan VB project and reports compilation-level vbnet:S6145 without a source location, which cannot be suppressed by a source pragma.
Preserve the existing Addins exclusion with its nine current literal paths. Automatic-analysis documentation disallows wildcard patterns in this configuration, so future Addins files must be added to the list. Templates remain embedded resources and generated output is unchanged.
Validation: the focused generator test passed; configuration validation confirms 13 unique tracked paths, exactly all four VB templates and nine previously excluded Addins files; git diff origin/main --check passes. Combined local CodeRabbit review completed at a9be758 with zero findings across both changed files. An earlier wildcard suggestion on the standalone configuration was dismissed based on the official documentation.
Supersedes #5321 by folding its configuration commit into this PR.
Monitor CI and SonarCloud for the current head. Confirm historical issue keys AZh_4UdBS70vPb2ZqA9o (S2699) and AZh_4UdhS70vPb2ZqA9r (synthetic VB S6145) are CLOSED/FIXED or absent from the active false-positive inventory only after completed main analysis includes the merge. A clean PR analysis does not prove their removal.
Review was skipped as selected files did not have any reviewable changes.
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Advanced
Run ID: b7cc82e9-b432-4591-a8c7-fdad74ddd33f
📥 Commits
Reviewing files that changed from the base of the PR and between a9be758 and d3f03d5.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
🔍 Trigger review
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 6876c611-a9a8-4598-9ff2-f247673597d4
📥 Commits
Reviewing files that changed from the base of the PR and between 336de44 and a9be758.
📒 Files selected for processing: 1
.sonarcloud.properties
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.
📝 Walkthrough
The test now suppresses Sonar rule S2699 around ValidateGeneratedCommandImplementation and restores the warning afterward. The method-level NOSONAR comment was removed. Test setup and generated-source validation are unchanged.
The change limits Sonar exclusions to the intended files and keeps the generator test’s existing expectations with a scoped suppression. No concrete issue prevents merging.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 …
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly summarizes both main changes: resolving the remaining SonarCloud assertion finding and addressing findings in the VB templates.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
arturcic
changed the title
fix: suppress generator assertion false positive at analyzer level
fix: resolve remaining SonarCloud assertion and VB template findings
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolve the two remaining SonarCloud false positives using configuration appropriate to each finding.
Preserve the existing Addins exclusion with its nine current literal paths. Automatic-analysis documentation disallows wildcard patterns in this configuration, so future Addins files must be added to the list. Templates remain embedded resources and generated output is unchanged.
Validation: the focused generator test passed; configuration validation confirms 13 unique tracked paths, exactly all four VB templates and nine previously excluded Addins files; git diff origin/main --check passes. Combined local CodeRabbit review completed at a9be758 with zero findings across both changed files. An earlier wildcard suggestion on the standalone configuration was dismissed based on the official documentation.
Supersedes #5321 by folding its configuration commit into this PR.
References: Automatic analysis configuration, S6145 compilation-level implementation.
Monitor CI and SonarCloud for the current head. Confirm historical issue keys AZh_4UdBS70vPb2ZqA9o (S2699) and AZh_4UdhS70vPb2ZqA9r (synthetic VB S6145) are CLOSED/FIXED or absent from the active false-positive inventory only after completed main analysis includes the merge. A clean PR analysis does not prove their removal.