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

[Apex] FN in S2068: Simple assignments not reported

    XMLWordPrintable

    Details

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

      Description

      String pwd = "1234" // Correctly reported
      pwd = "1234" // False negative!
      

      The rule only reports issues when the left-hand-side of the assignment is an identifier, with the current mapping, an additional VariableExpr (mapped to native) wrap the identifier, preventing the rule to behave correctly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              quentin.jaquier Quentin Jaquier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: