Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 22bfdc8

Browse files
authored
build: migrate on analyzer 2.0.0 (#412)
1 parent 6189fab commit 22bfdc8

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 4.2.0-dev.2
4+
5+
* Changed the supported `analyzer` version to `^2.0.0`.
6+
* Changed the supported `analyzer_plugin` version to `^0.7.0`.
7+
38
## 4.2.0-dev.1
49

510
* Add static code diagnostics `prefer-match-file-name`, `prefer-single-widget-per-file`.

lib/src/analyzer_plugin/analyzer_plugin_utils.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ plugin.AnalysisErrorFixes codeIssueToAnalysisErrorFixes(
2525
issue.location.length,
2626
issue.location.start.line,
2727
issue.location.start.column,
28-
issue.location.end.line,
29-
issue.location.end.column,
28+
endLine: issue.location.end.line,
29+
endColumn: issue.location.end.column,
3030
),
3131
issue.message,
3232
issue.ruleId,
@@ -68,8 +68,8 @@ plugin.AnalysisErrorFixes designIssueToAnalysisErrorFixes(Issue issue) =>
6868
issue.location.length,
6969
issue.location.start.line,
7070
issue.location.start.column,
71-
issue.location.end.line,
72-
issue.location.end.column,
71+
endLine: issue.location.end.line,
72+
endColumn: issue.location.end.column,
7373
),
7474
issue.message,
7575
issue.ruleId,
@@ -93,8 +93,8 @@ plugin.AnalysisErrorFixes metricReportToAnalysisErrorFixes(
9393
length,
9494
startLocation.line,
9595
startLocation.column,
96-
startLocation.line,
97-
startLocation.column,
96+
endLine: startLocation.line,
97+
endColumn: startLocation.column,
9898
),
9999
message,
100100
metricId,

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_code_metrics
2-
version: 4.2.0-dev.1
2+
version: 4.2.0-dev.2
33
description: Software analytics tool that helps developers analyse and improve software quality.
44
homepage: https://dartcodemetrics.dev
55
repository: https://github.com/dart-code-checker/dart-code-metrics
@@ -9,8 +9,8 @@ environment:
99
sdk: ">=2.12.0 <3.0.0"
1010

1111
dependencies:
12-
analyzer: ^1.7.0
13-
analyzer_plugin: ^0.6.0
12+
analyzer: ^2.0.0
13+
analyzer_plugin: ^0.7.0
1414
ansicolor: ^2.0.1
1515
args: ^2.0.0
1616
collection: ^1.15.0

tools/analyzer_plugin/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: dart_code_metrics_plugin_loader
22
description: This pubspec determines the version of the analyzer plugin to load.
3-
version: 4.2.0-dev.1
3+
version: 4.2.0-dev.2
44

55
environment:
66
sdk: ">=2.12.0 <3.0.0"
77

88
dependencies:
9-
dart_code_metrics: ^4.2.0-dev.1
9+
dart_code_metrics: ^4.2.0-dev.2

0 commit comments

Comments
 (0)