Repository navigation
chore: make a Sonar suppression the exception - #311
Merged
Merged
Conversation
…ed reason, listed in the pull request Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
…on-rule # Conflicts: # AGENTS.md
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
ffroliva
marked this pull request as ready for review
November 24, 2026 01:42
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Makes a Sonar suppression the exception rather than a shortcut.
AGENTS.mdarchitecture rule 7: an issue is suppressed only when the refactor it asks for would change behaviour, break a contract, or touch a safety path or overhead budget without the evidence those need. The comment states why the refactor was rejected, each pull request that adds one lists it with the refactor that was tried, and issues are never accepted or marked false positive in the SonarCloud UI.tests/test_code_shape.pyfails anyNOSONARcomment insrc/sharpit,tests,scriptsorui/srcwithout the- <reason>form. A planted bare suppression proves the check bites. The 27 suppressions onmainall pass it.A suppression in the code is still what removes an issue from the count
scripts/ci/sonar_ratchet.pyreads; this change only governs when one may be written.Test-Driven Development (Finding -> Test -> Red)
tests/test_code_shape.py::test_the_ratchets_catch_a_violationbare.tsline is reported:src/bare.ts:1: NOSONAR needs ' - <reason>'Contribution Checklist
Signed-off-by.AGENTS.md.