Class CodeQLRuleSarif

java.lang.Object
io.codemodder.providers.sarif.codeql.CodeQLRuleSarif
All Implemented Interfaces:
io.codemodder.RuleSarif

public final class CodeQLRuleSarif extends Object implements io.codemodder.RuleSarif
An implementation of the RuleSarif for SARIFs produced by CodeQL.
  • Constructor Details

    • CodeQLRuleSarif

      public CodeQLRuleSarif(String ruleId, com.contrastsecurity.sarif.SarifSchema210 sarif, io.codemodder.CodeDirectory codeDirectory)
  • Method Details

    • getRegionsFromResultsByRule

      public List<com.contrastsecurity.sarif.Region> getRegionsFromResultsByRule(Path path)
      Specified by:
      getRegionsFromResultsByRule in interface io.codemodder.RuleSarif
    • getResultsByLocationPath

      public List<com.contrastsecurity.sarif.Result> getResultsByLocationPath(Path path)
      Specified by:
      getResultsByLocationPath in interface io.codemodder.RuleSarif
    • rawDocument

      public com.contrastsecurity.sarif.SarifSchema210 rawDocument()
      Specified by:
      rawDocument in interface io.codemodder.RuleSarif
    • getRule

      public String getRule()
      Specified by:
      getRule in interface io.codemodder.RuleSarif
    • getDriver

      public String getDriver()
      Specified by:
      getDriver in interface io.codemodder.RuleSarif