io.codemodder.providers.sarif.pmd.PmdProvider Maven / Gradle / Ivy
package io.codemodder.providers.sarif.pmd;
import com.google.inject.AbstractModule;
import io.codemodder.CodeChanger;
import io.codemodder.CodemodProvider;
import io.codemodder.RuleSarif;
import java.nio.file.Path;
import java.util.List;
import java.util.Set;
/** Provides PMD-related functionality to codemodder. */
public final class PmdProvider implements CodemodProvider {
@Override
public Set getModules(
final Path codeDirectory,
final List includedFiles,
final List includePaths,
final List excludePaths,
final List> codemodTypes,
final List sarifs,
final List sonarIssuesJsonPaths,
final List sonarHotspotsJsonPaths,
final Path defectDojoFindingsJsonFile,
final Path contrastFindingsJsonPath) {
return Set.of(new PmdModule(codeDirectory, includedFiles, codemodTypes));
}
}