[tool] Remove some usages of deprecated usage package (#151359)

Partially addresses https://github.com/flutter/flutter/issues/150575 and https://github.com/flutter/flutter/issues/150665

Will require a g3fix.
This commit is contained in:
Andrew Kolos
2024-07-09 11:17:21 -07:00
committed by GitHub
parent 5ebc993dff
commit 5103d75743
26 changed files with 183 additions and 381 deletions

View File

@@ -912,9 +912,8 @@ Future<void> verifyNoTestImports(String workingDirectory) async {
}
// Fail if any errors
if (errors.isNotEmpty) {
final String s = errors.length == 1 ? '' : 's';
foundError(<String>[
'${bold}The following file$s import a test directly. Test utilities should be in their own file.$reset',
'${bold}The following file(s) import a test directly. Test utilities should be in their own file.$reset',
...errors,
]);
}