diff --git a/CHANGELOG.md b/CHANGELOG.md index d9fe073d34..b9530167f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 121046d5f1..d0c23cc74e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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' diff --git a/README.md b/README.md index e93f0c3f70..71b8ee486f 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 diff --git a/pubspec.yaml b/pubspec.yaml index 1b6368cc60..b2ea19782a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 diff --git a/test/config_builder/models/analysis_options_test.dart b/test/config_builder/models/analysis_options_test.dart index 45259921d7..f8541f23ab 100644 --- a/test/config_builder/models/analysis_options_test.dart +++ b/test/config_builder/models/analysis_options_test.dart @@ -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: { - '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: { - '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', + ); }); } diff --git a/tools/analyzer_plugin/pubspec.yaml b/tools/analyzer_plugin/pubspec.yaml index 82e7567c87..71cbb56fd3 100644 --- a/tools/analyzer_plugin/pubspec.yaml +++ b/tools/analyzer_plugin/pubspec.yaml @@ -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