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

Commit 1a69c2f

Browse files
committed
build: update version
1 parent 7d8269b commit 1a69c2f

File tree

6 files changed

+34
-24
lines changed

6 files changed

+34
-24
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Changelog
22

3-
## Unreleased
3+
## 4.5.0
44

5+
* feat: add static code diagnostics `avoid-nested-conditional-expressions`, `prefer-correct-identifier-length`, `prefer-correct-type-name`, `prefer-first`, `prefer-last`.
6+
* feat: introduce summary report.
57
* fix: rule-specific excludes not working on Windows.
8+
* fix: make check-unused-l10n report class fields.
9+
* chore: changed min `SDK` version to `2.14.0`.
10+
* chore: changed the supported `analyzer_plugin` version to `^0.8.0`.
11+
* chore: deprecate documentation in Github repo.
12+
* chore: restrict `analyzer` version to `>=2.4.0 <2.8.0`.
613

714
## 4.5.0-dev.3
815

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ To set this up:
8989
```yaml
9090
name: dart_code_metrics_plugin_loader
9191
description: This pubspec determines the version of the analyzer plugin to load.
92-
version: 4.5.0-dev.3
92+
version: 4.5.0
9393
9494
environment:
9595
sdk: '>=2.12.0 <3.0.0'

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[![Build Status](https://shields.io/github/workflow/status/dart-code-checker/dart-code-metrics/build?logo=github&logoColor=white)](https://github.com/dart-code-checker/dart-code-metrics/)
22
[![Coverage Status](https://img.shields.io/codecov/c/github/dart-code-checker/dart-code-metrics?logo=codecov&logoColor=white)](https://codecov.io/gh/dart-code-checker/dart-code-metrics/)
33
[![Pub Version](https://img.shields.io/pub/v/dart_code_metrics?logo=dart&logoColor=white)](https://pub.dev/packages/dart_code_metrics/)
4-
[![Pub Beta Version](https://img.shields.io/pub/v/dart_code_metrics?include_prereleases&logo=dart&label=pub%20beta&logoColor=white)](https://pub.dev/packages/dart_code_metrics/versions#prerelease)
54
[![Dart SDK Version](https://badgen.net/pub/sdk-version/dart_code_metrics)](https://pub.dev/packages/dart_code_metrics/)
65
[![License](https://img.shields.io/github/license/dart-code-checker/dart-code-metrics)](https://github.com/dart-code-checker/dart-code-metrics/blob/master/LICENSE)
76
[![Pub popularity](https://badgen.net/pub/popularity/dart_code_metrics)](https://pub.dev/packages/dart_code_metrics/score)
@@ -58,7 +57,7 @@ A plugin for the Dart `analyzer` [package](https://pub.dev/packages/analyzer) pr
5857

5958
```yaml
6059
dev_dependencies:
61-
dart_code_metrics: ^4.5.0-dev.3
60+
dart_code_metrics: ^4.5.0
6261
```
6362

6463
and then run

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_code_metrics
2-
version: 4.5.0-dev.3
2+
version: 4.5.0
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

test/config_builder/models/analysis_options_test.dart

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,26 @@ void main() {
188188
expect(options.readMapOfMap(['dart_code_metrics', 'rules4']), isEmpty);
189189
});
190190

191-
test('returns correct "folderPath" on posix platforms', () async {
192-
const options =
193-
AnalysisOptions('./unix/folder/analysis_options.yaml', {});
194-
195-
expect(options.folderPath, './unix/folder');
196-
}, onPlatform: <String, dynamic>{
197-
'windows': const Skip('Test should work only on posix platforms.')
198-
});
199-
200-
test('returns correct "folderPath" on windows platforms', () async {
201-
const options =
202-
AnalysisOptions(r'C:\windows\folder\analysis_options.yaml', {});
203-
204-
expect(options.folderPath, r'C:\windows\folder');
205-
}, onPlatform: <String, dynamic>{
206-
'posix': const Skip('Test should work only on windows platforms.')
207-
});
191+
test(
192+
'returns correct "folderPath" on posix platforms',
193+
() {
194+
const options =
195+
AnalysisOptions('./unix/folder/analysis_options.yaml', {});
196+
197+
expect(options.folderPath, './unix/folder');
198+
},
199+
testOn: 'posix',
200+
);
201+
202+
test(
203+
'returns correct "folderPath" on windows platforms',
204+
() {
205+
const options =
206+
AnalysisOptions(r'C:\windows\folder\analysis_options.yaml', {});
207+
208+
expect(options.folderPath, r'C:\windows\folder');
209+
},
210+
testOn: 'windows',
211+
);
208212
});
209213
}

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.5.0-dev.3
3+
version: 4.5.0
44

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

88
dependencies:
9-
dart_code_metrics: ^4.5.0-dev.3
9+
dart_code_metrics: ^4.5.0

0 commit comments

Comments
 (0)