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

Rule S5806: Builtins should not be shadowed

    Details

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

      Description

      We won't raise issues when builtin names exist only on python 2 or in python 3.
      To do this we need to know the exact version of python analyzed. This will be later provided by SONARPY-631 and SONARPY-677.

      More concretely we will cover builtins which exist in both python 2.7 and python 3.8.

      exec = 21  # False Negative. This doesn't exist in python 2.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmitry.golovinov Dmitry Golovinov
                Reporter:
                nicolas.harraudeau Nicolas Harraudeau
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: