Class SensitiveDataLoggingCodemod

java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.codemods.SensitiveDataLoggingCodemod
All Implemented Interfaces:
io.codemodder.CodeChanger

@Codemod(id="pixee:java/sensitive-data-logging", importance=HIGH, reviewGuidance=MERGE_AFTER_REVIEW) public final class SensitiveDataLoggingCodemod extends io.codemodder.javaparser.JavaParserChanger
A codemod that removes any sensitive data being logged.
  • Field Summary

    Fields inherited from class io.codemodder.javaparser.JavaParserChanger

    reporter
  • Constructor Summary

    Constructors
    Constructor
    Description
    SensitiveDataLoggingCodemod(io.codemodder.RuleSarif sarif, io.codemodder.plugins.llm.OpenAIService openAIService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    io.codemodder.CodemodFileScanningResult
    visit(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu)
     

    Methods inherited from class io.codemodder.javaparser.JavaParserChanger

    getDescription, getIndividualChangeDescription, getReferences, getSummary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SensitiveDataLoggingCodemod

      @Inject public SensitiveDataLoggingCodemod(@SemgrepScan(ruleId="sensitive-data-logging") io.codemodder.RuleSarif sarif, io.codemodder.plugins.llm.OpenAIService openAIService)
  • Method Details

    • 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
    • shouldRun

      public boolean shouldRun()