Interface SemgrepRunner


public interface SemgrepRunner
Responsible for running semgrep
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.contrastsecurity.sarif.SarifSchema210
    run(List<Path> yamls, Path codeDir, List<String> includePatterns, List<String> excludePatterns)
    Execute semgrep.
  • Method Details

    • run

      com.contrastsecurity.sarif.SarifSchema210 run(List<Path> yamls, Path codeDir, List<String> includePatterns, List<String> excludePatterns) throws IOException
      Execute semgrep.
      Parameters:
      yamls - the file(s) where the rule(s) are stored
      codeDir - the directory containing the code to be run on
      Returns:
      the resulting SARIF
      Throws:
      IOException
    • createDefault

      static SemgrepRunner createDefault()