SONARJAVA-6430 Centralize class-like tree kinds - #5869
SONARJAVA-6430 Centralize class-like tree kinds#5869aurelien-coet-sonarsource wants to merge 3 commits into
Conversation
e49dc53 to
ac4bb52
Compare
ac4bb52 to
2273fde
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5872 Please review and merge it into your branch. |
Code Review ✅ Approved 5 resolved / 5 findingsCentralizes class-like tree kinds into Tree.CLASS_KINDS and updates Java checks and frontend accordingly, addressing previous scope and drift issues across HiddenFieldCheck, MockitoStaticImportCheck, and RedundantNullability rules. ✅ 5 resolved✅ Quality: HiddenFieldCheck excludedNodes() now also excludes RECORD/ANN/IMPLICIT
✅ Quality: MockitoStaticImportCheck switch can drift from CLASS_KINDS
✅ Bug: RedundantNullability rule scope expands to enums/annotations
✅ Bug: Refactor changes behavior for RECORD/IMPLICIT_CLASS in two spots
✅ Bug: S1172 autoscan false negatives increased by the CLASS_KINDS refactor
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 |
|




Summary by Gitar
Tree.CLASS_KINDSlist containing all class-like node kinds inTree.javaTreeTest.javato verifyCLASS_KINDSmatches all kinds backed byClassTreeThis will update automatically on new commits.