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
e2d0b062
Unverified
Commit
e2d0b062
authored
Sep 18, 2018
by
Alexandre Ardhuin
Committed by
GitHub
Sep 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary ignore prefer_const_constructors (#21934)
parent
cffa67da
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8 additions
and
11 deletions
+8
-11
common.dart
dev/bots/test/common.dart
+1
-1
common.dart
dev/devicelab/test/common.dart
+1
-1
flutter_test_alternative.dart
...d_semantics_testing/lib/src/flutter_test_alternative.dart
+1
-1
flutter_test_alternative.dart
packages/flutter/test/flutter_test_alternative.dart
+1
-1
reorderable_list_test.dart
packages/flutter/test/material/reorderable_list_test.dart
+0
-1
flutter_logo_test.dart
packages/flutter/test/painting/flutter_logo_test.dart
+0
-2
common.dart
packages/flutter_driver/test/common.dart
+1
-1
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+1
-1
common.dart
packages/flutter_tools/test/src/common.dart
+1
-1
common.dart
packages/fuchsia_remote_debug_protocol/test/common.dart
+1
-1
No files found.
dev/bots/test/common.dart
View file @
e2d0b062
...
@@ -13,7 +13,7 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
...
@@ -13,7 +13,7 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
// TODO(ianh): Remove this file once https://github.com/dart-lang/matcher/issues/98 is fixed
// TODO(ianh): Remove this file once https://github.com/dart-lang/matcher/issues/98 is fixed
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
void
tryToDelete
(
Directory
directory
)
{
void
tryToDelete
(
Directory
directory
)
{
// This should not be necessary, but it turns out that
// This should not be necessary, but it turns out that
...
...
dev/devicelab/test/common.dart
View file @
e2d0b062
...
@@ -11,4 +11,4 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
...
@@ -11,4 +11,4 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
// TODO(ianh): Remove this file once https://github.com/dart-lang/matcher/issues/98 is fixed
// TODO(ianh): Remove this file once https://github.com/dart-lang/matcher/issues/98 is fixed
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
dev/integration_tests/android_semantics_testing/lib/src/flutter_test_alternative.dart
View file @
e2d0b062
...
@@ -11,4 +11,4 @@ import 'package:test/test.dart' as test_package show TypeMatcher;
...
@@ -11,4 +11,4 @@ import 'package:test/test.dart' as test_package show TypeMatcher;
export
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
export
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
packages/flutter/test/flutter_test_alternative.dart
View file @
e2d0b062
...
@@ -11,4 +11,4 @@ import 'package:test/test.dart' as test_package show TypeMatcher;
...
@@ -11,4 +11,4 @@ import 'package:test/test.dart' as test_package show TypeMatcher;
export
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
export
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
packages/flutter/test/material/reorderable_list_test.dart
View file @
e2d0b062
...
@@ -914,7 +914,6 @@ Future<void> longPressDrag(WidgetTester tester, Offset start, Offset end) async
...
@@ -914,7 +914,6 @@ Future<void> longPressDrag(WidgetTester tester, Offset start, Offset end) async
class
_Stateful
extends
StatefulWidget
{
class
_Stateful
extends
StatefulWidget
{
// Ignoring the preference for const constructors because we want to test with regular non-const instances.
// Ignoring the preference for const constructors because we want to test with regular non-const instances.
// ignore:prefer_const_constructors
// ignore:prefer_const_constructors_in_immutables
// ignore:prefer_const_constructors_in_immutables
_Stateful
({
Key
key
})
:
super
(
key:
key
);
_Stateful
({
Key
key
})
:
super
(
key:
key
);
...
...
packages/flutter/test/painting/flutter_logo_test.dart
View file @
e2d0b062
...
@@ -7,7 +7,6 @@ import 'package:flutter/painting.dart';
...
@@ -7,7 +7,6 @@ import 'package:flutter/painting.dart';
void
main
(
)
{
void
main
(
)
{
// Here and below, see: https://github.com/dart-lang/sdk/issues/26980
// Here and below, see: https://github.com/dart-lang/sdk/issues/26980
// ignore: prefer_const_constructors
final
FlutterLogoDecoration
start
=
FlutterLogoDecoration
(
final
FlutterLogoDecoration
start
=
FlutterLogoDecoration
(
lightColor:
const
Color
(
0xFF000000
),
lightColor:
const
Color
(
0xFF000000
),
darkColor:
const
Color
(
0xFFFFFFFF
),
darkColor:
const
Color
(
0xFFFFFFFF
),
...
@@ -16,7 +15,6 @@ void main() {
...
@@ -16,7 +15,6 @@ void main() {
margin:
const
EdgeInsets
.
all
(
10.0
),
margin:
const
EdgeInsets
.
all
(
10.0
),
);
);
// ignore: prefer_const_constructors
final
FlutterLogoDecoration
end
=
FlutterLogoDecoration
(
final
FlutterLogoDecoration
end
=
FlutterLogoDecoration
(
lightColor:
const
Color
(
0xFFFFFFFF
),
lightColor:
const
Color
(
0xFFFFFFFF
),
darkColor:
const
Color
(
0xFF000000
),
darkColor:
const
Color
(
0xFF000000
),
...
...
packages/flutter_driver/test/common.dart
View file @
e2d0b062
...
@@ -13,7 +13,7 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
...
@@ -13,7 +13,7 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
// TODO(ianh): Clean this up once https://github.com/dart-lang/matcher/issues/98 is fixed
// TODO(ianh): Clean this up once https://github.com/dart-lang/matcher/issues/98 is fixed
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
void
tryToDelete
(
Directory
directory
)
{
void
tryToDelete
(
Directory
directory
)
{
// This should not be necessary, but it turns out that
// This should not be necessary, but it turns out that
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
e2d0b062
...
@@ -194,7 +194,7 @@ final Matcher isAssertionError = isInstanceOf<AssertionError>();
...
@@ -194,7 +194,7 @@ final Matcher isAssertionError = isInstanceOf<AssertionError>();
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
// TODO(ianh): Remove this once https://github.com/dart-lang/matcher/issues/98 is fixed
// TODO(ianh): Remove this once https://github.com/dart-lang/matcher/issues/98 is fixed
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
/// Asserts that two [double]s are equal, within some tolerated error.
/// Asserts that two [double]s are equal, within some tolerated error.
///
///
...
...
packages/flutter_tools/test/src/common.dart
View file @
e2d0b062
...
@@ -20,7 +20,7 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf; // Defines a 'pa
...
@@ -20,7 +20,7 @@ export 'package:test/test.dart' hide TypeMatcher, isInstanceOf; // Defines a 'pa
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
// TODO(ianh): Remove this once https://github.com/dart-lang/matcher/issues/98 is fixed
// TODO(ianh): Remove this once https://github.com/dart-lang/matcher/issues/98 is fixed
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
void
tryToDelete
(
Directory
directory
)
{
void
tryToDelete
(
Directory
directory
)
{
// This should not be necessary, but it turns out that
// This should not be necessary, but it turns out that
...
...
packages/fuchsia_remote_debug_protocol/test/common.dart
View file @
e2d0b062
...
@@ -11,4 +11,4 @@ import 'package:test/test.dart' as test_package show TypeMatcher;
...
@@ -11,4 +11,4 @@ import 'package:test/test.dart' as test_package show TypeMatcher;
export
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
export
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
/// A matcher that compares the type of the actual value to the type argument T.
/// A matcher that compares the type of the actual value to the type argument T.
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
// ignore: prefer_const_constructors, https://github.com/dart-lang/sdk/issues/32544
Matcher
isInstanceOf
<
T
>()
=>
test_package
.
TypeMatcher
<
T
>();
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