io.codemodder.codemods.sensitive-data-logging.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-codemods Show documentation
Show all versions of core-codemods Show documentation
Codemods for fixing common errors across many Java projects
The newest version!
rules:
- id: sensitive-data-logging
message: See SensitiveDataLoggingCodemod.
severity: INFO
languages:
- java
patterns:
- pattern-either:
- patterns:
- pattern-either:
- pattern: (Log $X).$LEVEL(...,$ARG,...)
- pattern: (Logger $X).$LEVEL(...,$ARG,...)
- pattern: (Logger $X).log($LEVEL,...,$ARG,...)
- metavariable-pattern:
metavariable: $LEVEL
pattern-regex: (?i)info|warn|error|fatal|severe
- pattern: System.out.println($ARG)
- metavariable-pattern:
metavariable: $ARG
pattern-regex: (?i)password|secret|token|key|credentials|ssn