-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[various] Fixes unawaited_futures violations
#4067
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
Changes from 10 commits
b329c0f
f2095ff
907d834
87051f6
a8c7651
8e6981e
055260b
d6cb450
3002f3d
d747104
1263593
bed74b3
1490224
e92cac8
b0b1895
8909565
86e18bf
0b8a5ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # This custom rule set only exists to allow opting out of the repository | ||
| # default of enabling unawaited_futures. Please do NOT add more changes | ||
| # here without consulting with #hackers-ecosystem on Discord. | ||
|
|
||
| include: ../../analysis_options.yaml | ||
|
|
||
| linter: | ||
| rules: | ||
| # Matches flutter/flutter, which disables this rule due to false positives. | ||
| unawaited_futures: false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # TODO(stuartmorgan): Remove this file and fix all the unawaited_futures | ||
| # violations. See https://github.com/flutter/flutter/issues/127323 | ||
|
|
||
| include: ../../../analysis_options.yaml | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated to this pr. I wish we used absolute paths instead of relative paths when the absolute path has more meaning. I know that effective dart says to prefer relative paths but in this case it matters more that we are using the root analysis_options.yaml than the one 3 folders up.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree that would be better in this case, but I don't think it's actually possible; there's no package at the root. I guess we could make a local package with the shared options, and then depend on that in every single pubspec.yaml so we could use a |
||
|
|
||
| linter: | ||
| rules: | ||
| unawaited_futures: false | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,15 @@ | ||
| # This custom rule set only exists to allow very targeted changes | ||
| # relative to the default repo settings, for specific use cases. | ||
| # Please do NOT add more changes here without consulting with | ||
| # #hackers-ecosystem on Discord. | ||
|
|
||
| include: ../../analysis_options.yaml | ||
|
|
||
| analyzer: | ||
| exclude: | ||
| # This directory deliberately has errors, to test `fix`. | ||
| - "test_fixes/**" | ||
| linter: | ||
| rules: | ||
| # Matches flutter/flutter, which disables this rule due to false positives. | ||
| unawaited_futures: false | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ void main() { | |
| final dom.DomHtmlElement target = dom.document.createElement('div'); | ||
|
|
||
| test('Injects script into desired target', () async { | ||
| loadWebSdk(target: target); | ||
| await loadWebSdk(target: target); | ||
|
||
|
|
||
| // Target now should have a child that is a script element | ||
| final Object children = js_util.getProperty<Object>(target, 'children'); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.