From 63c68912c0038812e096463261518e5b64fc9fb2 Mon Sep 17 00:00:00 2001 From: Dmitry Krutskikh Date: Mon, 31 Jan 2022 21:30:08 +0300 Subject: [PATCH] build: update version --- CHANGELOG.md | 10 ++++++---- CONTRIBUTING.md | 2 +- README.md | 2 +- lib/src/version.dart | 2 +- pubspec.yaml | 2 +- tools/analyzer_plugin/pubspec.yaml | 4 ++-- website/docs/cli/analyze.md | 3 +++ website/docs/cli/check-unused-files.md | 3 +++ website/docs/cli/check-unused-l10n.md | 3 +++ website/docs/getting-started/installation.md | 2 +- 10 files changed, 22 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b873ef6c8..61cf1b3e2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,16 @@ # Changelog -## Unreleased +## 4.10.0 +* feat: add `check-unused-code` command with monorepos support. +* feat: support excludes for a separate anti-pattern. +* feat: improve `check-unused-l10n` command, ignore private members and cover supertype member calls. * feat: add new command flag `--no-congratulate`. * feat: add `--version` flag to print current version of the package. -* feat: improve `check-unused-files` and `check-unused-code` commands, add support for flutter internal entry functions. -* fix: make `check-unused-l10n` also cover supertype member calls. +* feat: support Flutter internal entry functions for `check-unused-files` and `check-unused-code`. * fix: cyclomatic complexity calculation for functions with internal lambdas. +* fix: ignore private variables in `avoid-global-state` rule. * chore: restrict `analyzer` version to `>=2.4.0 <3.3.0`. -* feat: support monorepos for `check-unused-code` command. ## 4.10.0-dev.2 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8aef90be08..94b7d028a7 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.10.0-dev.2 + version: 4.10.0 environment: sdk: ">=2.14.0 <3.0.0" diff --git a/README.md b/README.md index ad32d8f95c..c556812fa8 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ add it manually to `pubspec.yaml` ```yaml dev_dependencies: - dart_code_metrics: ^4.10.0-dev.2 + dart_code_metrics: ^4.10.0 ``` and then run diff --git a/lib/src/version.dart b/lib/src/version.dart index 51a171ba77..e407dd2fa3 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1 +1 @@ -const packageVersion = '4.10.0-dev.2'; +const packageVersion = '4.10.0'; diff --git a/pubspec.yaml b/pubspec.yaml index 9ee08992a6..7ee637ff05 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: dart_code_metrics -version: 4.10.0-dev.2 +version: 4.10.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/tools/analyzer_plugin/pubspec.yaml b/tools/analyzer_plugin/pubspec.yaml index 8e4b8cdc91..d2a339d332 100644 --- a/tools/analyzer_plugin/pubspec.yaml +++ b/tools/analyzer_plugin/pubspec.yaml @@ -1,12 +1,12 @@ name: dart_code_metrics_plugin_loader description: This pubspec determines the version of the analyzer plugin to load. -version: 4.10.0-dev.2 +version: 4.10.0 environment: sdk: ">=2.14.0 <3.0.0" dependencies: - dart_code_metrics: ^4.10.0-dev.2 + dart_code_metrics: ^4.10.0 dev_dependencies: lints: ^1.0.1 diff --git a/website/docs/cli/analyze.md b/website/docs/cli/analyze.md index 32989e62b4..934849cf3b 100644 --- a/website/docs/cli/analyze.md +++ b/website/docs/cli/analyze.md @@ -43,6 +43,9 @@ Usage: metrics analyze [arguments...] (defaults to "{/**.g.dart,/**.template.dart}") + --no-congratulate Don't show output even when there are no issues. + + --set-exit-on-violation-level= Set exit code 2 if code violations have the same or higher level [none, warning, alarm] diff --git a/website/docs/cli/check-unused-files.md b/website/docs/cli/check-unused-files.md index d6fd0ee919..315e1ea872 100644 --- a/website/docs/cli/check-unused-files.md +++ b/website/docs/cli/check-unused-files.md @@ -29,6 +29,9 @@ Usage: metrics check-unused-files [arguments...] (defaults to "{/**.g.dart,/**.template.dart}") + --no-congratulate Don't show output even when there are no issues. + + --[no-]fatal-unused Treat find unused file as fatal. -d, --[no-]delete-files Delete all unused files. diff --git a/website/docs/cli/check-unused-l10n.md b/website/docs/cli/check-unused-l10n.md index 88068df362..17270a7ddd 100644 --- a/website/docs/cli/check-unused-l10n.md +++ b/website/docs/cli/check-unused-l10n.md @@ -54,6 +54,9 @@ Usage: metrics check-unused-l10n [arguments] (defaults to "{/**.g.dart,/**.template.dart}") + --no-congratulate Don't show output even when there are no issues. + + --[no-]fatal-unused Treat find unused l10n as fatal. ``` diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index 58c4f219a0..8d98ca923c 100644 --- a/website/docs/getting-started/installation.md +++ b/website/docs/getting-started/installation.md @@ -23,7 +23,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dev_dependencies: - dart_code_metrics: ^4.10.0-dev.2 + dart_code_metrics: ^4.10.0 ``` and then run