konveyor / rulesets

Collections of static code analysis rules
Apache License 2.0
1 stars 17 forks source link

Bug: False positives for File system - Java IO #73

Open ascheman opened 4 months ago

ascheman commented 4 months ago

As discussed via Slack, the Windup Rule cloud-readiness/70-local-storage falsely matches several times in https://github.com/konveyor-demos/spring-petclinic/tree/wip/kantra.

To reproduce follow the following recipe:

  1. Clone the repository
  2. Check out branch wip/kantra
  3. (Optional) Get Kantra v0.3.2 by executing the get-kantra script
  4. Execute an analysis by executing Kantra with the run-kantra script (you may add more parameters, e.g., --log-level 10).
  5. Perhaps you need to set some environment variables (take a look into the scripts): a. Set PODMAN_BIN=podman if you happen to make use of podman instead of docker b. Set KANTRA=… to the (full) path of your Kantra executable if you have a respective Kantra binary somewhere around (then you could skip step 3).

    Look into the report with the File System - Java IO issues:

image