Skip to content

Commit 2620276

Browse files
committed
analysis issues
1 parent a58034f commit 2620276

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

dart/analysis_options.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include: package:lints/recommended.yaml
33
analyzer:
44
exclude:
55
- example/** # the example has its own 'analysis_options.yaml'
6+
- test/*.mocks.dart
67
errors:
78
# treat missing required parameters as a warning (not a hint)
89
missing_required_param: error

flutter/analysis_options.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include: package:flutter_lints/flutter.yaml
22

33
analyzer:
4+
exclude:
5+
- test/*.mocks.dart
46
language:
57
strict-casts: true
68
strict-inference: true

flutter/lib/src/profiling.dart

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'dart:async';
2-
import 'dart:io';
32

43
import 'package:sentry/sentry.dart';
54
// ignore: implementation_imports

flutter/test/profiling_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import 'package:flutter_test/flutter_test.dart';
44
import 'package:mockito/mockito.dart';
55
import 'package:sentry_flutter/sentry_flutter.dart';
66
import 'package:sentry_flutter/src/profiling.dart';
7-
import 'package:sentry_flutter/src/sentry_native.dart';
8-
import 'package:sentry_flutter/src/sentry_native_channel.dart';
97
import 'mocks.dart';
108
import 'mocks.mocks.dart';
119
import 'sentry_flutter_test.dart';
@@ -25,10 +23,12 @@ void main() {
2523
test('attachTo() respects sampling rate', () async {
2624
var hub = hubWithSampleRate(0.0);
2725
NativeProfilerFactory.attachTo(hub);
26+
// ignore: invalid_use_of_internal_member
2827
verifyNever(hub.profilerFactory = any);
2928

3029
hub = hubWithSampleRate(0.1);
3130
NativeProfilerFactory.attachTo(hub);
31+
// ignore: invalid_use_of_internal_member
3232
verify(hub.profilerFactory = any);
3333
});
3434

0 commit comments

Comments
 (0)