Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
774ca2f1
Unverified
Commit
774ca2f1
authored
Sep 11, 2018
by
Alexandre Ardhuin
Committed by
GitHub
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable lint avoid_void_async (#21652)
parent
98ad574d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
12 deletions
+12
-12
analysis_options.yaml
analysis_options.yaml
+1
-1
android_semantics_integration_test.dart
...vicelab/bin/tasks/android_semantics_integration_test.dart
+1
-1
gradle_plugin_test.dart
dev/devicelab/bin/tasks/gradle_plugin_test.dart
+1
-1
async_lifecycle_test.dart
packages/flutter/test/widgets/async_lifecycle_test.dart
+2
-2
flutter_test_config.dart
...es/flutter_test/test/test_config/flutter_test_config.dart
+1
-1
flutter_test_config.dart
...t/test/test_config/nested_config/flutter_test_config.dart
+1
-1
compile.dart
packages/flutter_tools/lib/src/compile.dart
+1
-1
flutter_manifest_test.dart
packages/flutter_tools/test/flutter_manifest_test.dart
+4
-4
No files found.
analysis_options.yaml
View file @
774ca2f1
...
...
@@ -74,7 +74,7 @@ linter:
-
avoid_types_as_parameter_names
# - avoid_types_on_closure_parameters # conflicts with always_specify_types
-
avoid_unused_constructor_parameters
# - avoid_void_async # not yet tested
-
avoid_void_async
-
await_only_futures
-
camel_case_types
-
cancel_subscriptions
...
...
dev/devicelab/bin/tasks/android_semantics_integration_test.dart
View file @
774ca2f1
...
...
@@ -6,7 +6,7 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/tasks/integration_tests.dart'
;
void
main
(
)
async
{
Future
<
void
>
main
()
async
{
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createAndroidSemanticsIntegrationTest
());
}
dev/devicelab/bin/tasks/gradle_plugin_test.dart
View file @
774ca2f1
...
...
@@ -36,7 +36,7 @@ Future<void> runPluginProjectTest(Future<void> testFunction(FlutterPluginProject
}
}
void
main
(
)
async
{
Future
<
void
>
main
()
async
{
await
task
(()
async
{
section
(
'Find Java'
);
...
...
packages/flutter/test/widgets/async_lifecycle_test.dart
View file @
774ca2f1
...
...
@@ -10,7 +10,7 @@ class InvalidOnInitLifecycleWidget extends StatefulWidget {
class
InvalidOnInitLifecycleWidgetState
extends
State
<
InvalidOnInitLifecycleWidget
>
{
@override
void
initState
()
async
{
Future
<
void
>
initState
()
async
{
super
.
initState
();
}
...
...
@@ -31,7 +31,7 @@ class InvalidDidUpdateWidgetLifecycleWidget extends StatefulWidget {
class
InvalidDidUpdateWidgetLifecycleWidgetState
extends
State
<
InvalidDidUpdateWidgetLifecycleWidget
>
{
@override
void
didUpdateWidget
(
InvalidDidUpdateWidgetLifecycleWidget
oldWidget
)
async
{
Future
<
void
>
didUpdateWidget
(
InvalidDidUpdateWidgetLifecycleWidget
oldWidget
)
async
{
super
.
didUpdateWidget
(
oldWidget
);
}
...
...
packages/flutter_test/test/test_config/flutter_test_config.dart
View file @
774ca2f1
...
...
@@ -4,7 +4,7 @@
import
'dart:async'
;
void
main
(
FutureOr
<
void
>
testMain
())
async
{
Future
<
void
>
main
(
FutureOr
<
void
>
testMain
())
async
{
await
runZoned
<
dynamic
>(
testMain
,
zoneValues:
<
Type
,
String
>{
String
:
'/test_config'
,
});
...
...
packages/flutter_test/test/test_config/nested_config/flutter_test_config.dart
View file @
774ca2f1
...
...
@@ -4,7 +4,7 @@
import
'dart:async'
;
void
main
(
FutureOr
<
void
>
testMain
())
async
{
Future
<
void
>
main
(
FutureOr
<
void
>
testMain
())
async
{
await
runZoned
<
dynamic
>(
testMain
,
zoneValues:
<
Type
,
dynamic
>{
String
:
'/test_config/nested_config'
,
int
:
123
,
...
...
packages/flutter_tools/lib/src/compile.dart
View file @
774ca2f1
...
...
@@ -316,7 +316,7 @@ class ResidentCompiler {
final
List
<
_CompilationRequest
>
_compilationQueue
=
<
_CompilationRequest
>[];
void
_handleCompilationRequest
(
_CompilationRequest
request
)
async
{
Future
<
void
>
_handleCompilationRequest
(
_CompilationRequest
request
)
async
{
final
bool
isEmpty
=
_compilationQueue
.
isEmpty
;
_compilationQueue
.
add
(
request
);
// Only trigger processing if queue was empty - i.e. no other requests
...
...
packages/flutter_tools/test/flutter_manifest_test.dart
View file @
774ca2f1
...
...
@@ -503,7 +503,7 @@ flutter:
});
group
(
'FlutterManifest with MemoryFileSystem'
,
()
{
void
assertSchemaIsReadable
()
async
{
Future
<
void
>
assertSchemaIsReadable
()
async
{
const
String
manifest
=
'''
name: test
dependencies:
...
...
@@ -529,18 +529,18 @@ flutter:
);
}
testUsingContext
(
'Validate manifest on original fs'
,
()
async
{
testUsingContext
(
'Validate manifest on original fs'
,
()
{
assertSchemaIsReadable
();
});
testUsingContextAndFs
(
'Validate manifest on Posix FS'
,
new
MemoryFileSystem
(
style:
FileSystemStyle
.
posix
),
()
async
{
new
MemoryFileSystem
(
style:
FileSystemStyle
.
posix
),
()
{
assertSchemaIsReadable
();
}
);
testUsingContextAndFs
(
'Validate manifest on Windows FS'
,
new
MemoryFileSystem
(
style:
FileSystemStyle
.
windows
),
()
async
{
new
MemoryFileSystem
(
style:
FileSystemStyle
.
windows
),
()
{
assertSchemaIsReadable
();
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment