Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add discarded_futures #74

Open
ricardodalarme opened this issue May 8, 2023 · 1 comment
Open

[Feature Request] Add discarded_futures #74

ricardodalarme opened this issue May 8, 2023 · 1 comment

Comments

@ricardodalarme
Copy link

Description

Making asynchronous calls in non-async functions usually signals a programming error. These functions should generally be marked async, and such futures should probably be awaited (as enforced by unawaited_futures).

So, to avoid this kind of problem, it would be really nice to have the discarded_futures included in the analysis.

Documentation

@renancaraujo
Copy link
Contributor

After some reasearch, seems like there are some unresolved false positives issues with this rule.

dart-lang/linter#3801

dart-lang/linter#4085

dart-lang/linter#4375

Dealing with false positives is the biggest blocker for this issue to be added to VG analysis IMO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

2 participants