codeql icon indicating copy to clipboard operation
codeql copied to clipboard

LGTM.com - false positive - missing call to init

Open ZRunner opened this issue 2 years ago • 1 comments

Description of the false positive

CodeQL tells me that I do not call the __init__ methof of the grandparent of my class, while I actually call super().__init__ a few lines under the report, which in turns call its parent init.

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/ZRunner/ZBot/snapshot/251707c4448cb78be9c94613d7d0fe7a43681b2f/files/fcts/tickets.py#xb1b03f109ea86c39:1

ZRunner avatar Jul 28 '22 17:07 ZRunner

Indeed, this looks like a false positive. Thank you for reporting it!

Our current focus is on improving our security analysis. Because your report does not relate to a security query, we will put this on our backlog and prioritize it if we get enough reports of the same underlying issue in other projects. If you think that your report is related to our security analysis, please clarify that in a comment. Either way, we'll let you know here as soon as it's fixed!

As you might know, all of our queries are open source. If you do have an idea for a code change, we encourage you to open a pull request. GitHub Code Scanning and lgtm.com have facilities for suppressing individual alerts or disabling a query.

alexet avatar Jul 28 '22 18:07 alexet