DEV Community

Discussion on: Why Pylint is both useful and unusable, and how you can actually use it

Collapse
 
erkurita profile image
José Alejandro Carrillo Neira • Edited

There's also an underlying issue that was clearly apparent to me: either your tests (if any) are not covering that piece of code, or no QA / functional testing was done before marking it production-ready, the latter being graver IMHO.

Unless the piece of code is not accurately reflecting how the scoped variable is used inside the function, this might have been certainly caught during development (tests) or during QA.