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)
    Execute PMD.
  • Method Details

    • run

      com.contrastsecurity.sarif.SarifSchema210 run(List<String> ruleIds, Path codeDir)
      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
      Returns:
      the resulting SARIF
    • createDefault

      static PmdRunner createDefault()