io.codemodder.providers.sarif.pmd.PmdRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-plugin-pmd Show documentation
Show all versions of codemodder-plugin-pmd Show documentation
Plugin to enable the use of PMD in codemods
The newest version!
package io.codemodder.providers.sarif.pmd;
import com.contrastsecurity.sarif.SarifSchema210;
import java.nio.file.Path;
import java.util.List;
/** Responsible for running PMD */
public interface PmdRunner {
/**
* Execute PMD.
*
* @param ruleIds the rule IDs to run (the rules must be in the default PMD ruleset)
* @param codeDir the directory containing the code to be run on
* @param includedFiles the files to be included in the scan
* @return the resulting SARIF
*/
SarifSchema210 run(List ruleIds, Path codeDir, List includedFiles);
static PmdRunner createDefault() {
return new DefaultPmdRunner();
}
}