codemodder-java
codemodder-java copied to clipboard
a framework for building java codemods
Issue: https://github.com/pixee/codemodder-java/issues/364 Example of running a list of sonar findings files: ``` ./gradlew :core-codemods:run --args='--output /Users/iwa/Documents/GitHub/WebGoat_12_23/WebGoat_12_23.codetf --verbose --sonar-issues-json /Users/iwa/Desktop/sonar1.json,/Users/iwa/Desktop/sonar2.json --log-format human /Users/iwa/Documents/GitHub/WebGoat_12_23/' ``` Sonar hotspot CLI input was the only...
👋 This dashboard summarizes my activity on the repository, including available improvement opportunities. ## Recommendations _Last analysis: Aug 02 | Next scheduled analysis: Aug 09_ ### Open ✅ Nice work,...
The `--sarif` flag currently handles comma-separated lists of files as inputs. We need to do the same for `--sonar-issues-json` and `--sonar-hotspots-json`.
Despite the recommendation from the associated sonar rule to replace: ```java List numbers = someStream.collect(Collectors.toList()); ``` ```java List numbers = someStream.toList(); ``` These are not the same. The second one...
Consider the following snippet: ```java String code = """ import java.nio.file.Files; import java.io.File; import java.io.BufferedWriter; class A{ void f(File f){ // first comment BufferedWriter writer = Files.newBufferedWriter(f.toPath()); // second comment...
👋 This dashboard summarizes my activity on the repository, including available improvement opportunities. ## Recommendations _Last analysis: Jul 28 | Next scheduled analysis: Aug 04_ ### Open ✅ Nice work,...
Sonar correctly identifies that we should prefer specialized function types that use primitive ints. /towards #work