Clean up lint ignores (#144229)

Fixes:
- https://github.com/dart-lang/tools/issues/234

Bumps the version for package:unified_analytics and removes TODOs and lint ignores
This commit is contained in:
Elias Yishak
2024-02-27 18:21:03 -05:00
committed by GitHub
parent fdb17ab069
commit d3b60d4649
14 changed files with 60 additions and 63 deletions

View File

@@ -17,8 +17,7 @@ import 'package:meta/meta.dart';
import 'package:path/path.dart' as path; // flutter_ignore: package_path_import
import 'package:test/test.dart' as test_package show test;
import 'package:test/test.dart' hide test;
// TODO(goderbauer): Fix this ignore when https://github.com/dart-lang/tools/issues/234 is resolved.
import 'package:unified_analytics/src/enums.dart' show DevicePlatform; // ignore: implementation_imports
import 'package:unified_analytics/testing.dart';
import 'package:unified_analytics/unified_analytics.dart';
import 'fakes.dart';

View File

@@ -125,7 +125,7 @@ void testUsingContext(
CrashReporter: () => const NoopCrashReporter(),
TemplateRenderer: () => const MustacheTemplateRenderer(),
BuildTargets: () => const BuildTargetsImpl(),
Analytics: () => NoOpAnalytics(),
Analytics: () => const NoOpAnalytics(),
},
body: () {
// To catch all errors thrown by the test, even uncaught async errors, we use a zone.