io.codemodder.providers.sarif.semgrep.SemgrepRule 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 java.nio.file.Path;
import java.util.Objects;
/**
* Represents a Semgrep rule with all the metadata it needs to be run and associated with a scan.
*/
record SemgrepRule(SemgrepScan semgrepScan, String ruleId, Path yaml) {
SemgrepRule {
Objects.requireNonNull(semgrepScan);
Objects.requireNonNull(ruleId);
Objects.requireNonNull(yaml);
}
}