Package io.codemodder.codemods
Class SensitiveDataLoggingCodemod
java.lang.Object
io.codemodder.RawFileChanger
io.codemodder.SarifPluginRawFileChanger
io.codemodder.plugins.llm.LLMAssistedCodemod
io.codemodder.codemods.SensitiveDataLoggingCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
@Codemod(id="pixee:java/sensitive-data-logging",
reviewGuidance=MERGE_AFTER_REVIEW)
public final class SensitiveDataLoggingCodemod
extends io.codemodder.plugins.llm.LLMAssistedCodemod
A codemod that removes any sensitive data being logged.
-
Field Summary
Fields inherited from class io.codemodder.RawFileChanger
reporter
-
Constructor Summary
ConstructorsConstructorDescriptionSensitiveDataLoggingCodemod
(io.codemodder.RuleSarif sarif, io.codemodder.plugins.llm.OpenAIService openAI) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
protected boolean
isPatchExpected
(com.github.difflib.patch.Patch<String> patch) Methods inherited from class io.codemodder.plugins.llm.LLMAssistedCodemod
getClassResourceAsString, onFileFound
Methods inherited from class io.codemodder.SarifPluginRawFileChanger
visitFile
Methods inherited from class io.codemodder.RawFileChanger
getDescription, getIndividualChangeDescription, getReferences, getSourceControlUrl, getSummary
-
Constructor Details
-
SensitiveDataLoggingCodemod
@Inject public SensitiveDataLoggingCodemod(@SemgrepScan(ruleId="sensitive-data-logging") io.codemodder.RuleSarif sarif, io.codemodder.plugins.llm.OpenAIService openAI)
-
-
Method Details
-
getThreatPrompt
- Specified by:
getThreatPrompt
in classio.codemodder.plugins.llm.LLMAssistedCodemod
-
getFixPrompt
- Specified by:
getFixPrompt
in classio.codemodder.plugins.llm.LLMAssistedCodemod
-
isPatchExpected
- Specified by:
isPatchExpected
in classio.codemodder.plugins.llm.LLMAssistedCodemod
-