Uploaded image for project: 'SonarPHP'
  1. SonarPHP
  2. SONARPHP-947

Rule RSPEC-2068: empty credential variables should not be considered as hard-coded credentials

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3
    • Component/s: None
    • Labels:
      None

      Description

      This rule should be raised only when a sensitive variable contains non empty value.
       
      Currently, an issue is wrongly raised when the variable is empty:

      var $password = '';
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nils.werner Nils Werner
              Reporter:
              eric.therond Eric Therond
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: