All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.providers.sarif.semgrep.SemgrepRunner Maven / Gradle / Ivy

There is a newer version: 0.97.8
Show newest version
package io.codemodder.providers.sarif.semgrep;

import com.contrastsecurity.sarif.SarifSchema210;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;

/** Responsible for running semgrep */
public interface SemgrepRunner {

  /**
   * Execute semgrep.
   *
   * @param yamls the file(s) where the rule(s) are stored
   * @param codeDir the directory containing the code to be run on
   * @return the resulting SARIF
   */
  SarifSchema210 run(
      List yamls, Path codeDir, List includePatterns, List excludePatterns)
      throws IOException;

  static SemgrepRunner createDefault() {
    return new DefaultSemgrepRunner();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy