Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity
    • Default Quality Profiles:
      Sonar way, Sonar way recommended

      Description

      Noncompliant Code Example

      if (someSet.size >= 0) {...} // Noncompliant
      
      if (someMap.size < 0) {...} // Noncompliant
      
      const result = someArray.length >= 0;  // Noncompliant
      

      Compliant Solution

      if (someSet.size > 0) {...}
      
      if (someMap.size == 0) {...}
      
      const result = someArray.length > 0;
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tibor.blenessy Tibor Blenessy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: