io.codemodder.providers.sarif.appscan.AppScanProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-plugin-appscan Show documentation
Show all versions of codemodder-plugin-appscan Show documentation
Plugin to enable the use of appscan in codemods
package io.codemodder.providers.sarif.appscan;
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 codemods that act on AppScan results. */
public final class AppScanProvider implements CodemodProvider {
@Override
public Set getModules(
final Path repository,
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 AppScanModule(codemodTypes, sarifs));
}
@Override
public List wantsSarifToolNames() {
return List.of("HCL AppScan Static Analyzer");
}
}