False positive on new Python rule S5806: display is not a built-in

We are using SonarCloud and we have this code line that is now flagged as using a built-in:
display = bool(not args[’-q’])

The triggered rule is the new python:S5806 released on June 16. We double checked the python docs and even in the REPL we did not find anything about display being reserved in Python.

Hi @sodul,

Thanks for catching that. We raise issues by mistake on symbols added to __builtins__ by ipython. I created the following ticket to fix this: SONARPY-737

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.