Can you do a first pass of cleanups? Pay attention to:
-
Leaked keys
-
Indirectly leaked keys
-
Overly defensive programming and hiding failures instead of letting errors bubble up, also while adding too much code.
- This is perhaps the most common and annoying. The AI wants to build trust by making code that can’t fail, but that ultimately is just gaslighting us into thinking it works / is robust. It’s delaying finding issues and making unmaintainable code.
Here is an example: