Uploaded image for project: 'SonarPython'
  1. SonarPython
  2. SONARPY-540

Assignment expressions: update LVA-based rules (Python 3.8)

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: None
    • Labels:
      None

      Description

      Once we are able to parse assignment expressions, we should update our LVA-based algorithms to account for them. The following rules are impacted and should be updated as well:

      • RSPEC-1854: Unused assignments should be removed
      • RSPEC-1226: Method parameters, caught exceptions and foreach variables' initial values should not be ignored
      • RSPEC-3827: Variables, classes and functions should be defined before being used

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              guillaume.dequenne Guillaume Dequenne
              Reporter:
              guillaume.dequenne Guillaume Dequenne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: