Skip to content

Commit 1c86354

Browse files
committed
Fixed avoid_late_keyword_allow_initialized_test.dart
1 parent 3e1711b commit 1c86354

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

lint_test/avoid_late_keyword/allow_initialized/avoid_late_keyword_allow_initialized_test.dart

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,56 +14,68 @@ class ColorTween {}
1414
/// `avoid_late_keyword`
1515
/// allow_initialized option disabled
1616
class AvoidLateKeyword {
17-
/// expect_lint: avoid_late_keyword
17+
/// ignored_types: Animation
1818
late final Animation animation1;
1919

20+
/// ignored_types: Animation
2021
late final animation2 = AnimationController();
2122

23+
/// ignored_types: Animation
2224
late final animation3 = SubAnimationController();
2325

2426
/// expect_lint: avoid_late_keyword
2527
late final ColorTween colorTween1;
2628

29+
/// expect_lint: avoid_late_keyword
2730
late final colorTween2 = ColorTween();
2831

32+
/// expect_lint: avoid_late_keyword
2933
late final colorTween3 = colorTween2;
3034

31-
/// expect_lint: avoid_late_keyword
35+
/// ignored_types: Animation
3236
late final AnimationController controller1;
3337

38+
/// expect_lint: avoid_late_keyword
3439
late final field1 = 'string';
3540

3641
/// expect_lint: avoid_late_keyword
3742
late final String field2;
3843

44+
/// expect_lint: avoid_late_keyword
3945
late final String field3 = 'string';
4046

4147
/// expect_lint: avoid_late_keyword
4248
late final field4;
4349

4450
void test() {
45-
/// expect_lint: avoid_late_keyword
51+
/// ignored_types: Animation
4652
late final Animation animation1;
4753

54+
/// ignored_types: Animation
4855
late final animation2 = AnimationController();
4956

57+
/// ignored_types: Animation
5058
late final animation3 = SubAnimationController();
5159

5260
/// expect_lint: avoid_late_keyword
5361
late final ColorTween colorTween1;
5462

63+
/// expect_lint: avoid_late_keyword
5564
late final colorTween2 = ColorTween();
5665

66+
/// expect_lint: avoid_late_keyword
5767
late final colorTween3 = colorTween2;
5868

59-
/// expect_lint: avoid_late_keyword
69+
/// ignored_types: Animation
6070
late final AnimationController controller1;
6171

72+
/// expect_lint: avoid_late_keyword
6273
late final local1 = 'string';
6374

6475
/// expect_lint: avoid_late_keyword
6576
late final String local2;
6677

78+
/// expect_lint: avoid_late_keyword
6779
late final String local4 = 'string';
6880

6981
/// expect_lint: avoid_late_keyword

0 commit comments

Comments
 (0)