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.SarifSchema210Return the entire SARIF as a model in case more comprehensive inspection is needed.
-
Constructor Details
-
LazyLoadingRuleSarif
-
-
Method Details
-
getRegionsFromResultsByRule
Description copied from interface:RuleSarifGet all the regions for the SARIF with the matching rule ID- Specified by:
getRegionsFromResultsByRulein 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:RuleSarifGet all the SARIF results with the matching path for the first location field- Specified by:
getResultsByLocationPathin 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:RuleSarifReturn the entire SARIF as a model in case more comprehensive inspection is needed.- Specified by:
rawDocumentin interfaceRuleSarif
-
getRule
Description copied from interface:RuleSarifReturns the string ID for the rule. -
getDriver
Description copied from interface:RuleSarifReturns the tool driver that produced this SARIF.
-