Bug 568579

Summary: [cleanup] An option to skip a cleanup if it will delete a comment
Product: [Eclipse Project] JDT Reporter: Fabrice Tiercelin <fabrice.tiercelin>
Component: UIAssignee: Fabrice Tiercelin <fabrice.tiercelin>
Status: ASSIGNED --- QA Contact: Carsten Hammer <carsten.hammer>
Severity: enhancement    
Priority: P3    
Version: 4.17   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Fabrice Tiercelin CLA 2020-11-05 23:51:17 EST
Here is what we currently apply about comments in cleanup:
 - When a comment is outside the change, it is kept as it is,
 - When a comment is related to a code that is replaced and functionally does the same thing, it is kept as it is,
 - When the comment is inside a removed code, it is considered as no more relevant.

The user should be able to cancel the rule anytime a comment is lost. The idea is to run all the cleanups safety, so with low review, and then process the remaining cases, requiring a review and corrections.