jhaabhijeet864 commented on PR #4083:
URL: 
https://github.com/apache/incubator-kie-tools/pull/4083#issuecomment-7305847533

   Thank you @drccrd and @jomarko for the follow-up review comments. I have 
pushed commit `86033f8` to address everything:
   
   1. **Public surface cleanup (`DRLLintSuppression`)**: Removed `filter`, 
`isSuppressibleSource`, `hasAnySuppression`, `isSuppressed(Diagnostic)`, and 
`parse(String)`, exposed only `parse(List<Token>, String)`, and made the 
directive/code constant sets `private`. Tests now obtain `SuppressionIndex` 
through `DRLDiagnosticHelper.parse(text).suppression` and exercise the 
`DRL10Lexer` tokens directly.
   2. **Javadocs & visibility (`DRLLintHelper`)**: Restored the 
`lintUnknownTypes` Javadoc, moved `RuleBlock` and `scanRuleBlocks` after the 
constants with the `declare`-tracking Javadoc preserved, and changed them from 
`public` to package-private (kept package-private because `DRLLintSuppression` 
in `org.drools.completion` shares `scanRuleBlocks`).
   3. **MVEL suppression & cap ordering**: `mvelPropertyAccessEdits(String)` 
now honors suppression directives via `suppressionFor(text)` rather than 
passing `null`, and `findLhsAccessorFindings` filters out suppressed lines 
before counting toward `MAX_DIAGNOSTICS_PER_PASS` so 20+ suppressed getters no 
longer hide subsequent warnings or quick-fixes.
   4. **Suppression cache reuse (`DroolsLspDocumentService`)**: `validate()` 
caches the `SuppressionIndex` per URI/text snapshot (invalidated on `didChange` 
and cleared on `didClose`) and `codeAction()` reuses it in 
`buildPropertyAccessActions` without re-parsing on every request.
   5. **Test improvements (`DRLLintSuppressionTest` & 
`DroolsLspDocumentServiceTest`)**: Rewrote multi-line DRL fixtures with Java 
text blocks (`"""`), saved/restored the `drools.lsp.lint.*` system properties 
around each test instead of clearing unconditionally, and added tests for MVEL 
cap preservation and `validate()` -> `codeAction()` cache reuse.
   
   All unit tests in `drools-completion` (488/488) and `drools-lsp-server` 
(145/145) pass. Please let me know if anything else is needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to