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

Commit

Permalink
build: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrutskikh committed Oct 22, 2021
1 parent 7d8269b commit 1a69c2f
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 24 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Changelog

## Unreleased
## 4.5.0

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

## 4.5.0-dev.3

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ To set this up:
```yaml
name: dart_code_metrics_plugin_loader
description: This pubspec determines the version of the analyzer plugin to load.
version: 4.5.0-dev.3
version: 4.5.0
environment:
sdk: '>=2.12.0 <3.0.0'
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[![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/)
[![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/)
[![Pub Version](https://img.shields.io/pub/v/dart_code_metrics?logo=dart&logoColor=white)](https://pub.dev/packages/dart_code_metrics/)
[![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)
[![Dart SDK Version](https://badgen.net/pub/sdk-version/dart_code_metrics)](https://pub.dev/packages/dart_code_metrics/)
[![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)
[![Pub popularity](https://badgen.net/pub/popularity/dart_code_metrics)](https://pub.dev/packages/dart_code_metrics/score)
Expand Down Expand Up @@ -58,7 +57,7 @@ A plugin for the Dart `analyzer` [package](https://pub.dev/packages/analyzer) pr

```yaml
dev_dependencies:
dart_code_metrics: ^4.5.0-dev.3
dart_code_metrics: ^4.5.0
```

and then run
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dart_code_metrics
version: 4.5.0-dev.3
version: 4.5.0
description: Software analytics tool that helps developers analyse and improve software quality.
homepage: https://dartcodemetrics.dev
repository: https://github.com/dart-code-checker/dart-code-metrics
Expand Down
38 changes: 21 additions & 17 deletions test/config_builder/models/analysis_options_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,26 @@ void main() {
expect(options.readMapOfMap(['dart_code_metrics', 'rules4']), isEmpty);
});

test('returns correct "folderPath" on posix platforms', () async {
const options =
AnalysisOptions('./unix/folder/analysis_options.yaml', {});

expect(options.folderPath, './unix/folder');
}, onPlatform: <String, dynamic>{
'windows': const Skip('Test should work only on posix platforms.')
});

test('returns correct "folderPath" on windows platforms', () async {
const options =
AnalysisOptions(r'C:\windows\folder\analysis_options.yaml', {});

expect(options.folderPath, r'C:\windows\folder');
}, onPlatform: <String, dynamic>{
'posix': const Skip('Test should work only on windows platforms.')
});
test(
'returns correct "folderPath" on posix platforms',
() {
const options =
AnalysisOptions('./unix/folder/analysis_options.yaml', {});

expect(options.folderPath, './unix/folder');
},
testOn: 'posix',
);

test(
'returns correct "folderPath" on windows platforms',
() {
const options =
AnalysisOptions(r'C:\windows\folder\analysis_options.yaml', {});

expect(options.folderPath, r'C:\windows\folder');
},
testOn: 'windows',
);
});
}
4 changes: 2 additions & 2 deletions tools/analyzer_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: dart_code_metrics_plugin_loader
description: This pubspec determines the version of the analyzer plugin to load.
version: 4.5.0-dev.3
version: 4.5.0

environment:
sdk: ">=2.14.0 <3.0.0"

dependencies:
dart_code_metrics: ^4.5.0-dev.3
dart_code_metrics: ^4.5.0

0 comments on commit 1a69c2f

Please sign in to comment.