Class CodeQLRuleSarif
java.lang.Object
io.codemodder.providers.sarif.codeql.CodeQLRuleSarif
- All Implemented Interfaces:
io.codemodder.RuleSarif
An implementation of the
RuleSarif for SARIFs produced by CodeQL.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.codemodder.RuleSarif
io.codemodder.RuleSarif.EmptyRuleSarif -
Field Summary
Fields inherited from interface io.codemodder.RuleSarif
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionCodeQLRuleSarif(String ruleId, com.contrastsecurity.sarif.SarifSchema210 sarif, io.codemodder.CodeDirectory codeDirectory) -
Method Summary
Modifier and TypeMethodDescriptionList<com.contrastsecurity.sarif.Region>List<com.contrastsecurity.sarif.Result>getResultsByLocationPath(Path path) getRule()com.contrastsecurity.sarif.SarifSchema210
-
Constructor Details
-
CodeQLRuleSarif
public CodeQLRuleSarif(String ruleId, com.contrastsecurity.sarif.SarifSchema210 sarif, io.codemodder.CodeDirectory codeDirectory)
-
-
Method Details
-
getRegionsFromResultsByRule
- Specified by:
getRegionsFromResultsByRulein interfaceio.codemodder.RuleSarif
-
getResultsByLocationPath
- Specified by:
getResultsByLocationPathin interfaceio.codemodder.RuleSarif
-
rawDocument
public com.contrastsecurity.sarif.SarifSchema210 rawDocument()- Specified by:
rawDocumentin interfaceio.codemodder.RuleSarif
-
getRule
- Specified by:
getRulein interfaceio.codemodder.RuleSarif
-
getDriver
- Specified by:
getDriverin interfaceio.codemodder.RuleSarif
-