Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-2768

FN S2092: new Cookie("name", "value")

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.4
    • Fix Version/s: 5.7
    • Component/s: Rules
    • Labels:
      None

      Description

      S2092 should raise an issue in the following cases:

      • initialization separated from the declaration:
          Cookie c13;
          c13 = new Cookie("name", "value");
      
      • returning a new, non-compliant cookie:
        Cookie getC1() {
          return new Cookie("name", "value");
        }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alban.auzeill Alban Auzeill
              Reporter:
              alexandre.gigleux Alexandre Gigleux
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: