Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-473

Rule S2068: filter empty strings

    XMLWordPrintable

    Details

      Description

      The rule should avoid raising issues when the literal string is empty:

      • Go
        password := ""; // Compliant
        
      • Ruby
        password = ""; // Compliant
        
      • Apex
        String password = ''; // Compliant
        
      • Kotlin
        val password = ""  // Compliant
        
      • Scala
        val password = ""                        // Compliant
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amelie.renard Amélie Renard
              Reporter:
              pierre-loup.tristant Pierre-Loup Tristant
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: