Interface PmdRunner


public interface PmdRunner
Responsible for running PMD
  • Method Summary

    Modifier and Type
    Method
    Description
    static PmdRunner
     
    com.contrastsecurity.sarif.SarifSchema210
    run(List<String> ruleIds, Path codeDir, List<Path> includedFiles)
    Execute PMD.
  • Method Details

    • run

      com.contrastsecurity.sarif.SarifSchema210 run(List<String> ruleIds, Path codeDir, List<Path> includedFiles)
      Execute PMD.
      Parameters:
      ruleIds - the rule IDs to run (the rules must be in the default PMD ruleset)
      codeDir - the directory containing the code to be run on
      includedFiles - the files to be included in the scan
      Returns:
      the resulting SARIF
    • createDefault

      static PmdRunner createDefault()