Package io.codemodder
Class LazyLoadingRuleSarif
java.lang.Object
io.codemodder.LazyLoadingRuleSarif
- All Implemented Interfaces:
RuleSarif
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.codemodder.RuleSarif
RuleSarif.EmptyRuleSarif
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the tool driver that produced this SARIF.List<com.contrastsecurity.sarif.Region>
Get all the regions for the SARIF with the matching rule IDList<com.contrastsecurity.sarif.Result>
getResultsByLocationPath
(Path path) Get all the SARIF results with the matching path for the first location fieldgetRule()
Returns the string ID for the rule.com.contrastsecurity.sarif.SarifSchema210
Return the entire SARIF as a model in case more comprehensive inspection is needed.
-
Constructor Details
-
LazyLoadingRuleSarif
-
-
Method Details
-
getRegionsFromResultsByRule
Description copied from interface:RuleSarif
Get all the regions for the SARIF with the matching rule ID- Specified by:
getRegionsFromResultsByRule
in interfaceRuleSarif
- Parameters:
path
- the file being scanned- Returns:
- the source code regions where the given rule was found in the given file
-
getResultsByLocationPath
Description copied from interface:RuleSarif
Get all the SARIF results with the matching path for the first location field- Specified by:
getResultsByLocationPath
in interfaceRuleSarif
- Parameters:
path
- the file being scanned- Returns:
- the results associated with the given file
-
rawDocument
public com.contrastsecurity.sarif.SarifSchema210 rawDocument()Description copied from interface:RuleSarif
Return the entire SARIF as a model in case more comprehensive inspection is needed.- Specified by:
rawDocument
in interfaceRuleSarif
-
getRule
Description copied from interface:RuleSarif
Returns the string ID for the rule. -
getDriver
Description copied from interface:RuleSarif
Returns the tool driver that produced this SARIF.
-