io.codemodder.providers.sarif.semgrep.SemgrepRuleFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-plugin-semgrep Show documentation
Show all versions of codemodder-plugin-semgrep Show documentation
Plugin to enable the use of semgrep in codemods
package io.codemodder.providers.sarif.semgrep;
import io.codemodder.CodeChanger;
/** A type that creates codemodder-ready Semgrep YAML rules ready for execution. */
interface SemgrepRuleFactory {
/**
* Given the user's configuration data, return a definition of a rule that can be used by
* codemodder.
*/
SemgrepRule createRule(
Class extends CodeChanger> codemodType, SemgrepScan scanInfo, String packageName);
}