File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core-codemods/src/main/java/io/codemodder/codemods Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ public DefectDojoSqlInjectionCodemod(
3131 }
3232
3333 @ Override
34- public List < CodemodChange > visit (
34+ public CodemodFileScanningResult visit (
3535 final CodemodInvocationContext context , final CompilationUnit cu ) {
3636
3737 List <MethodCallExpr > allMethodCalls = cu .findAll (MethodCallExpr .class );
3838
3939 List <Finding > findingsForThisPath = findings .getForPath (context .path ());
4040 if (findingsForThisPath .isEmpty ()) {
41- return List . of ();
41+ return CodemodFileScanningResult . none ();
4242 }
4343
4444 List <DetectorFinding > fixed = new ArrayList <>();
@@ -90,6 +90,6 @@ public List<CodemodChange> visit(
9090 }
9191 }
9292
93- return List . copyOf (changes );
93+ return CodemodFileScanningResult . from (changes , allUnfixable );
9494 }
9595}
You can’t perform that action at this time.
0 commit comments