Adjust ignores for 'dart format' (#160382)
When running `dart format` over these lines the `// ignore` ended up on a line where it wasn't properly ignoring the lint. This adjusts the placement of `// ignore`s so they will continue to ignore the right thing even after the code is auto formatted. I am hoping that if we do this now the large PR that formats the entire repo will go in smoother without manual intervention.
This commit is contained in:
committed by
GitHub
parent
6159f2eef6
commit
8fee7cb832
@@ -524,16 +524,20 @@ void main() {
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
primaryLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels12To11,
|
||||
);
|
||||
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
selectedLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels12To11,
|
||||
);
|
||||
});
|
||||
@@ -546,16 +550,20 @@ void main() {
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
primaryLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels12To11,
|
||||
);
|
||||
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
selectedLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels12To11,
|
||||
);
|
||||
});
|
||||
@@ -568,16 +576,20 @@ void main() {
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
primaryLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels00To23TwoDigit,
|
||||
);
|
||||
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
selectedLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels00To23TwoDigit,
|
||||
);
|
||||
});
|
||||
@@ -590,16 +602,20 @@ void main() {
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
primaryLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels00To22TwoDigit,
|
||||
);
|
||||
|
||||
// ignore: avoid_dynamic_calls
|
||||
final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>;
|
||||
expect(
|
||||
// ignore: avoid_dynamic_calls
|
||||
selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!),
|
||||
selectedLabels.map<String>(
|
||||
// ignore: avoid_dynamic_calls
|
||||
(dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!,
|
||||
),
|
||||
labels00To22TwoDigit,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user