SONARJAVA-6532 Reclassify and take an action on rule 6541#5721
SONARJAVA-6532 Reclassify and take an action on rule 6541#5721asya-vorobeva wants to merge 5 commits into
Conversation
6aabc43 to
fb2af25
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t module threshold Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fb2af25 to
dd261b9
Compare
…l percentage-based issues Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Code Review ✅ Approved 2 resolved / 2 findingsRefines BrainMethodCheck reporting logic by implementing a percentage-based threshold system and increasing the division factor to 15, successfully resolving sharp reporting cliffs and zero-issue rounding errors. ✅ 2 resolved✅ Edge Case: Sharp cliff: crossing found-issues threshold drops reports drastically
✅ Edge Case: Percentage rounding can report 0 issues while issues exist
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




S6541: reduce noise by defining cap for issues to be raised. As a result we report maximum 30 issues per each project module.
It's experimental threshold; the further improvements can be done. Fo Peach projects I see that the number of issues decreased from 2135 to 2060. But it's not super representative, makes sense to monitor real customers' data.
Summary by Gitar
BrainMethodCheckissues.numberOfFoundIssuesThreshold,numberOfAdditionalIssuesThreshold, andissuesToReportPercentage.betatoready.BrainMethodCheckSubsetCapped.java,BrainMethodCheckSubsetLarge.java, andBrainMethodCheckSubsetSmall.java.BrainMethodCheckTest.javato verify threshold logic and capping behavior.This will update automatically on new commits.