Is your feature request related to a problem? Please describe.
A user could accidentally open files via os.open or open and forget to call close if not within a with statement.
Not calling close can result in leaked file descriptors.
Describe the solution you'd like
Create a new rule to check for open without a subsequent close if not within a with statement.
Describe alternatives you've considered
n/a
Additional context
https://docs.python.org/3/library/functions.html#open
Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.
Is your feature request related to a problem? Please describe.
A user could accidentally open files via
os.openoropenand forget to callcloseif not within awithstatement.Not calling close can result in leaked file descriptors.
Describe the solution you'd like
Create a new rule to check for open without a subsequent close if not within a
withstatement.Describe alternatives you've considered
n/a
Additional context
https://docs.python.org/3/library/functions.html#open
Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.