Package io.codemodder

Class Sarif

java.lang.Object
io.codemodder.Sarif

public final class Sarif extends Object
Utility class for working with SARIF model objects.
  • Method Details

    • getLastDataFlowRegion

      public static com.contrastsecurity.sarif.Region getLastDataFlowRegion(com.contrastsecurity.sarif.Result result)
      This method returns the last data flow location in the first code flow's first thread flow. This assumes that the SARIF tool models their data flow in this way. This appears true for now.
      Parameters:
      result - the SARIF result
      Returns:
      the last data flow location in the first code flow's first thread flow