Package io.codemodder.codemods.sonar
Class SonarSQLInjectionIssueCodemod
java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.providers.sonar.SonarRemediatingJavaParserChanger
io.codemodder.codemods.sonar.SonarSQLInjectionIssueCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
,io.codemodder.FixOnlyCodeChanger
@Codemod(id="sonar:java/sql-injection-s3649",
reviewGuidance=MERGE_AFTER_REVIEW,
importance=HIGH,
executionPriority=HIGH)
public final class SonarSQLInjectionIssueCodemod
extends io.codemodder.providers.sonar.SonarRemediatingJavaParserChanger
-
Field Summary
Fields inherited from class io.codemodder.javaparser.JavaParserChanger
reporter
-
Constructor Summary
ConstructorsConstructorDescriptionSonarSQLInjectionIssueCodemod
(io.codemodder.providers.sonar.RuleIssue issues) -
Method Summary
Modifier and TypeMethodDescriptionio.codemodder.codetf.DetectorRule
io.codemodder.CodemodFileScanningResult
visit
(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu) Methods inherited from class io.codemodder.providers.sonar.SonarRemediatingJavaParserChanger
supports, vendorName
Methods inherited from class io.codemodder.javaparser.JavaParserChanger
getDescription, getIncludesExcludesPattern, getIndividualChangeDescription, getReferences, getSummary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.codemodder.CodeChanger
shouldRun
-
Constructor Details
-
SonarSQLInjectionIssueCodemod
@Inject public SonarSQLInjectionIssueCodemod(@ProvidedSonarScan(ruleId="javasecurity:S3649") io.codemodder.providers.sonar.RuleIssue issues)
-
-
Method Details
-
detectorRule
public io.codemodder.codetf.DetectorRule detectorRule() -
visit
public io.codemodder.CodemodFileScanningResult visit(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu) - Specified by:
visit
in classio.codemodder.javaparser.JavaParserChanger
-