diff --git a/.vscode/settings.json b/.vscode/settings.json index 8548610e8a..1b1fad04cf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "bools", "codeclimate", "codecov", + "codequality", "cyclomatic", "dartanalyzer", "dartdocs", diff --git a/CHANGELOG.md b/CHANGELOG.md index 61cf1b3e2f..419c885d57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 4.10.1 + +* fix: restore `analyze` command as default command. + ## 4.10.0 * feat: add `check-unused-code` command with monorepos support. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94b7d028a7..ef8ef27b32 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 + version: 4.10.1 environment: sdk: ">=2.14.0 <3.0.0" diff --git a/README.md b/README.md index c556812fa8..71dcdfc436 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 + dart_code_metrics: ^4.10.1 ``` and then run diff --git a/lib/src/cli/cli_runner.dart b/lib/src/cli/cli_runner.dart index cb6ee4625a..2379103ac0 100644 --- a/lib/src/cli/cli_runner.dart +++ b/lib/src/cli/cli_runner.dart @@ -38,7 +38,9 @@ class CliRunner extends CommandRunner { @override Future run(Iterable args) async { try { - final results = parse(args); + final argsWithDefaultCommand = _addDefaultCommand(args); + + final results = parse(argsWithDefaultCommand); final showVersion = results[FlagNames.version] as bool; if (showVersion) { @@ -47,7 +49,7 @@ class CliRunner extends CommandRunner { return; } - await super.run(_addDefaultCommand(args)); + await super.run(argsWithDefaultCommand); } on UsageException catch (e) { _output ..writeln(e.message) diff --git a/lib/src/version.dart b/lib/src/version.dart index e407dd2fa3..4d4d4f150a 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1 +1 @@ -const packageVersion = '4.10.0'; +const packageVersion = '4.10.1'; diff --git a/pubspec.yaml b/pubspec.yaml index 7ee637ff05..0adfaa636c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: dart_code_metrics -version: 4.10.0 +version: 4.10.1 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 d2a339d332..85d4cc64cf 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 +version: 4.10.1 environment: sdk: ">=2.14.0 <3.0.0" dependencies: - dart_code_metrics: ^4.10.0 + dart_code_metrics: ^4.10.1 dev_dependencies: lints: ^1.0.1 diff --git a/website/docs/cli/analyze.md b/website/docs/cli/analyze.md index 934849cf3b..d1f9e219c5 100644 --- a/website/docs/cli/analyze.md +++ b/website/docs/cli/analyze.md @@ -374,7 +374,7 @@ code_quality: before_script: - dart pub global activate dart_code_metrics script: - - dart pub global run dart_code_metrics:metrics lib -r gitlab > code-quality-report.json + - dart pub global run dart_code_metrics:metrics analyze lib -r gitlab > code-quality-report.json artifacts: reports: codequality: code-quality-report.json diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index 8d98ca923c..8f3a8f0e48 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 + dart_code_metrics: ^4.10.1 ``` and then run