-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Closed
Copy link
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-set-fluttertype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
New lint: Do not store BuildContext into variables, or use across async calls.
This lint will flag source where
-
a
BuildContextis ever assigned to anything other than a local variable, or -
a
BuildContextis ever passed as an argument to any async function or whose corresponding parameter doesn't have the typeBuildContext(where an async method is one that returns eitherFutureorStream).
Proposed name: do_not_store_build_contexts ?
triallax, NatoBoram, jacob314 and LiXianYua
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-set-fluttertype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug