This repo shows how to create a CodeQL query to find references to shutil.rmtree.
-
Install VSCode CodeQL extension using this guide
-
Clone the core libs repo https://github.com/github/codeql and add it to the VSCode workspace
-
Create a database of your code
- Run
codeql database create codeqldb --language=pythonto create the database