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
e2b169eb
Commit
e2b169eb
authored
Jan 13, 2020
by
Ian Hickson
Committed by
Flutter GitHub Bot
Jan 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply void_checks lint. (#48267)
parent
ab36346a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
12 deletions
+9
-12
analysis_options.yaml
analysis_options.yaml
+1
-1
text_field.dart
packages/flutter/lib/src/material/text_field.dart
+1
-1
diagnostics_test.dart
packages/flutter/test/foundation/diagnostics_test.dart
+5
-3
shortcuts_test.dart
packages/flutter/test/widgets/shortcuts_test.dart
+0
-3
goldens_test.dart
packages/flutter_test/test/goldens_test.dart
+1
-1
web_fs.dart
packages/flutter_tools/lib/src/build_runner/web_fs.dart
+0
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+1
-2
No files found.
analysis_options.yaml
View file @
e2b169eb
...
...
@@ -199,4 +199,4 @@ linter:
# - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182
# - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
-
valid_regexps
# - void_checks # not yet tested
-
void_checks
packages/flutter/lib/src/material/text_field.dart
View file @
e2b169eb
...
...
@@ -911,7 +911,7 @@ class _TextFieldState extends State<TextField> implements TextSelectionGestureDe
void
_handleHover
(
bool
hovering
)
{
if
(
hovering
!=
_isHovering
)
{
setState
(()
{
return
_isHovering
=
hovering
;
_isHovering
=
hovering
;
});
}
}
...
...
packages/flutter/test/foundation/diagnostics_test.dart
View file @
e2b169eb
...
...
@@ -1914,9 +1914,11 @@ void main() {
'--- example property at max length --'
,
style:
propertyStyle
,
),
DiagnosticsProperty
<
void
>(
null
,
DiagnosticsProperty
<
String
>(
null
,
'Message that is not allowed to wrap even though it is very long. Message that is not allowed to wrap even though it is very long. Message that is not allowed to wrap even though it is very long. Message that is not allowed to wrap.'
,
allowWrap:
false
),
allowWrap:
false
,
),
DiagnosticsNode
.
message
(
'--- example property at max length --'
,
style:
propertyStyle
,
...
...
packages/flutter/test/widgets/shortcuts_test.dart
View file @
e2b169eb
...
...
@@ -177,7 +177,6 @@ void main() {
TestAction
.
key
:
()
=>
TestAction
(
onInvoke:
(
FocusNode
node
,
Intent
intent
)
{
invoked
=
true
;
return
true
;
},
),
},
...
...
@@ -215,7 +214,6 @@ void main() {
TestAction
.
key
:
()
=>
TestAction
(
onInvoke:
(
FocusNode
node
,
Intent
intent
)
{
invoked
=
true
;
return
true
;
},
),
},
...
...
@@ -254,7 +252,6 @@ void main() {
TestAction
.
key
:
()
=>
TestAction
(
onInvoke:
(
FocusNode
node
,
Intent
intent
)
{
invoked
=
true
;
return
true
;
},
),
},
...
...
packages/flutter_test/test/goldens_test.dart
View file @
e2b169eb
...
...
@@ -53,7 +53,7 @@ void main() {
void
test
(
String
description
,
FutureOr
<
void
>
body
())
{
test_package
.
test
(
description
,
()
{
return
io
.
IOOverrides
.
runZoned
<
FutureOr
<
void
>>(
io
.
IOOverrides
.
runZoned
<
FutureOr
<
void
>>(
body
,
createDirectory:
(
String
path
)
=>
fs
.
directory
(
path
),
createFile:
(
String
path
)
=>
fs
.
file
(
path
),
...
...
packages/flutter_tools/lib/src/build_runner/web_fs.dart
View file @
e2b169eb
...
...
@@ -643,7 +643,6 @@ class BuildDaemonCreator {
if
(
testTargets
.
hasBuildFilters
)
{
b
.
buildFilters
.
addAll
(
testTargets
.
buildFilters
);
}
return
b
;
}));
}
}
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
e2b169eb
...
...
@@ -956,9 +956,8 @@ abstract class ResidentRunner {
}
}
Future
<
void
>
_serviceProtocolDone
(
dynamic
object
)
{
Future
<
void
>
_serviceProtocolDone
(
dynamic
object
)
async
{
globals
.
printTrace
(
'Service protocol connection closed.'
);
return
Future
<
void
>.
value
(
object
);
}
Future
<
void
>
_serviceProtocolError
(
dynamic
error
,
StackTrace
stack
)
{
...
...
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