Package io.codemodder.codemods
Class LimitReadlineCodemod
java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
io.codemodder.codemods.LimitReadlineCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
@Codemod(id="pixee:java/limit-readline",
reviewGuidance=MERGE_WITHOUT_REVIEW)
public final class LimitReadlineCodemod
extends io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
Turns hardcoded seeds for PRNGs to be more random.
-
Field Summary
Fields inherited from class io.codemodder.SarifPluginJavaParserChanger
sarifFields inherited from class io.codemodder.javaparser.JavaParserChanger
reporter -
Constructor Summary
ConstructorsConstructorDescriptionLimitReadlineCodemod(io.codemodder.RuleSarif sarif, io.codemodder.Parameter limit) -
Method Summary
Modifier and TypeMethodDescriptionList<io.codemodder.DependencyGAV>booleanonResultFound(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr readLineCall, com.contrastsecurity.sarif.Result result) Methods inherited from class io.codemodder.SarifPluginJavaParserChanger
visitMethods inherited from class io.codemodder.javaparser.JavaParserChanger
getDescription, getIndividualChangeDescription, getReferences, getSourceControlUrl, getSummary
-
Constructor Details
-
LimitReadlineCodemod
@Inject public LimitReadlineCodemod(@SemgrepScan(ruleId="limit-readline") io.codemodder.RuleSarif sarif, io.codemodder.Parameter limit)
-
-
Method Details
-
onResultFound
public boolean onResultFound(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr readLineCall, com.contrastsecurity.sarif.Result result) - Specified by:
onResultFoundin classio.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
-
dependenciesRequired
- Overrides:
dependenciesRequiredin classio.codemodder.javaparser.JavaParserChanger
-