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:
getRegionsFromResultsByRule
in interfaceio.codemodder.RuleSarif
-
getResultsByLocationPath
- Specified by:
getResultsByLocationPath
in interfaceio.codemodder.RuleSarif
-
rawDocument
public com.contrastsecurity.sarif.SarifSchema210 rawDocument()- Specified by:
rawDocument
in interfaceio.codemodder.RuleSarif
-
getRule
- Specified by:
getRule
in interfaceio.codemodder.RuleSarif
-
getDriver
- Specified by:
getDriver
in interfaceio.codemodder.RuleSarif
-