Class SemgrepSQLInjectionFormattedSqlStringCodemod

java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.codemods.semgrep.SemgrepJavaParserChanger
io.codemodder.codemods.semgrep.SemgrepSQLInjectionFormattedSqlStringCodemod
All Implemented Interfaces:
io.codemodder.CodeChanger, io.codemodder.FixOnlyCodeChanger

@Codemod(id="semgrep:java/java.lang.security.audit.formatted-sql-string.formatted-sql-string", reviewGuidance=MERGE_WITHOUT_REVIEW, executionPriority=HIGH, importance=HIGH) public final class SemgrepSQLInjectionFormattedSqlStringCodemod extends SemgrepJavaParserChanger
Fixes some Semgrep issues reported under the id "java.lang.security.audit.formatted-sql-string.formatted-sql-string".
  • Constructor Details

    • SemgrepSQLInjectionFormattedSqlStringCodemod

      @Inject public SemgrepSQLInjectionFormattedSqlStringCodemod(@ProvidedSemgrepScan(ruleId="java.lang.security.audit.formatted-sql-string.formatted-sql-string") io.codemodder.RuleSarif sarif)
  • 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 class io.codemodder.javaparser.JavaParserChanger