Open Jenson3210 opened 1 month ago
Open questions:
Should suggestions include the surrounding context like diff does or should they start at line 1 of change and go till last change?
If not, what about nonchanged lines in the middle of 2 changed lines. Typically a diff groups these together. If we make suggestion "per line", it might become a lot of comments and a hard to follow suggestion overview. eg. If the diff is
-List<String>oldVariableName=this.lines();
+List<String>list=this.lines();
-oldVariableName.forEach(System.out::println);
-System.out.println("List contains " + oldVariableName.size + " items.")
+list.forEach(System.out::println);
+System.out.println("List contains " + list.size + " items.")
Do we want to see 1 suggestion including the whiteline in the middle or a suggestion per block (2)?
What problem are you trying to solve?
In order to support other tools to extend the output of the result of the rewriteRun task, we should allow for a report to be written as part of these tasks.
Describe the solution you'd like
SARIF support. potentially later we could add additional formats if required.
Additional context
Are you interested in contributing this feature to OpenRewrite?
Yes! will need some pointers on gradle plugin design possibly