Skip to content

Commit 3f5f587

Browse files
committed
Fix formatting and exclude devtools extension from analyzer
- Format test/devtools_test.dart - Exclude tool/get_it_devtools_extension/** from analyzer to avoid dependency errors
1 parent 3ee13e9 commit 3f5f587

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

analysis_options.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
include: package:lint/analysis_options_package.yaml
22

3-
# analyzer:
4-
# exclude:
3+
analyzer:
4+
exclude:
5+
- tool/get_it_devtools_extension/**
56

67
formatter:
78
trailing_commas: preserve

test/devtools_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ void main() {
3333

3434
// Unregister
3535
GetIt.I.unregister<String>();
36-
36+
3737
// Reset
3838
await GetIt.I.reset();
3939
});
40-
40+
4141
test('Service extension logic runs without error', () async {
42-
// We can't easily invoke the extension here without VM Service,
43-
// but we can ensure the registration code in the constructor didn't crash.
44-
// The constructor is called when we access GetIt.instance for the first time.
45-
expect(GetIt.I, isNotNull);
42+
// We can't easily invoke the extension here without VM Service,
43+
// but we can ensure the registration code in the constructor didn't crash.
44+
// The constructor is called when we access GetIt.instance for the first time.
45+
expect(GetIt.I, isNotNull);
4646
});
4747
});
4848
}

0 commit comments

Comments
 (0)