Flag Sink objects that are never closed #57281
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-lint-request
type-enhancement
A request for a change that isn't a bug
Here's another linter hint that's standard-lib-specific (something like C linter hints complaining about unsafe use of
memcpy
,malloc
, etc.). Whenever there is a Sink object that is opened in scope but never calledclose()
upon in that same scope, that's a pretty strong indication the developer forgot.We could easily identify other similar classes that have to be closed (or unsubscribed from) when no longer in use.
The text was updated successfully, but these errors were encountered: