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

Commit 67c2f3d

Browse files
authored
fix: restore analyze command as default command (#675)
1 parent dfa1280 commit 67c2f3d

File tree

10 files changed

+17
-10
lines changed

10 files changed

+17
-10
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"bools",
88
"codeclimate",
99
"codecov",
10+
"codequality",
1011
"cyclomatic",
1112
"dartanalyzer",
1213
"dartdocs",

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 4.10.1
4+
5+
* fix: restore `analyze` command as default command.
6+
37
## 4.10.0
48

59
* feat: add `check-unused-code` command with monorepos support.

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.10.0
92+
version: 4.10.1
9393
9494
environment:
9595
sdk: ">=2.14.0 <3.0.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ add it manually to `pubspec.yaml`
5959

6060
```yaml
6161
dev_dependencies:
62-
dart_code_metrics: ^4.10.0
62+
dart_code_metrics: ^4.10.1
6363
```
6464
6565
and then run

lib/src/cli/cli_runner.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ class CliRunner extends CommandRunner<void> {
3838
@override
3939
Future<void> run(Iterable<String> args) async {
4040
try {
41-
final results = parse(args);
41+
final argsWithDefaultCommand = _addDefaultCommand(args);
42+
43+
final results = parse(argsWithDefaultCommand);
4244
final showVersion = results[FlagNames.version] as bool;
4345

4446
if (showVersion) {
@@ -47,7 +49,7 @@ class CliRunner extends CommandRunner<void> {
4749
return;
4850
}
4951

50-
await super.run(_addDefaultCommand(args));
52+
await super.run(argsWithDefaultCommand);
5153
} on UsageException catch (e) {
5254
_output
5355
..writeln(e.message)

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const packageVersion = '4.10.0';
1+
const packageVersion = '4.10.1';

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.10.0
2+
version: 4.10.1
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

tools/analyzer_plugin/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: dart_code_metrics_plugin_loader
22
description: This pubspec determines the version of the analyzer plugin to load.
3-
version: 4.10.0
3+
version: 4.10.1
44

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

88
dependencies:
9-
dart_code_metrics: ^4.10.0
9+
dart_code_metrics: ^4.10.1
1010

1111
dev_dependencies:
1212
lints: ^1.0.1

website/docs/cli/analyze.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ code_quality:
374374
before_script:
375375
- dart pub global activate dart_code_metrics
376376
script:
377-
- dart pub global run dart_code_metrics:metrics lib -r gitlab > code-quality-report.json
377+
- dart pub global run dart_code_metrics:metrics analyze lib -r gitlab > code-quality-report.json
378378
artifacts:
379379
reports:
380380
codequality: code-quality-report.json

website/docs/getting-started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ environment:
2323
sdk: '>=2.12.0 <3.0.0'
2424

2525
dev_dependencies:
26-
dart_code_metrics: ^4.10.0
26+
dart_code_metrics: ^4.10.1
2727
```
2828
2929
and then run

0 commit comments

Comments
 (0)