All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.codemods.sensitive-data-logging.yaml Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy