Skip to content

Commit 758757a

Browse files
committed
Support analyzer 6.4.0
1 parent 0df6bee commit 758757a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/custom_lint_builder/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased patch
2+
3+
- Upgrade analyzer to support 6.4.0
4+
15
## 0.6.1 - 2024-02-14
26

37
- `custom_lint_core` upgraded to `0.6.1`

packages/custom_lint_builder/lib/src/client.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,8 @@ class _ClientAnalyzerPlugin extends analyzer_plugin.ServerPlugin {
866866
return;
867867
}
868868

869-
final resolver =
870-
analysisContext.createResolverForFile(resourceProvider.getFile(path));
869+
final file = resourceProvider.getFile(path);
870+
final resolver = analysisContext.createResolverForFile(file);
871871
if (resolver == null) return;
872872

873873
final lintsBeforeExpectLint = <AnalysisError>[];
@@ -954,7 +954,7 @@ class _ClientAnalyzerPlugin extends analyzer_plugin.ServerPlugin {
954954
CustomAnalyzerConverter().convertAnalysisErrors(
955955
allAnalysisErrors,
956956
lineInfo: resolver.lineInfo,
957-
options: analysisContext.analysisOptions,
957+
options: analysisContext.getAnalysisOptionsForFile(file),
958958
),
959959
).toNotification(),
960960
),

packages/custom_lint_builder/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
sdk: ">=3.0.0 <4.0.0"
88

99
dependencies:
10-
analyzer: ">=5.12.0 <7.0.0"
10+
analyzer: ^6.4.0
1111
analyzer_plugin: ^0.11.0
1212
collection: ^1.16.0
1313
# Using tight constraints as custom_lint_builder communicate with each-other

0 commit comments

Comments
 (0)