Package io.codemodder
Class Sarif
java.lang.Object
io.codemodder.Sarif
Utility class for working with SARIF model objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-