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

Commit 132b265

Browse files
committed
chore: revet breaking changes
1 parent 824f90c commit 132b265

13 files changed

+9
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
## Unreleased
44

5-
* **Breaking Change:** cli arguments `--fatal-unused` and `--fatal-warnings` activate by default.
6-
* feat: add Checkstyle format reporter.
7-
* chore: restrict `analyzer` version to `>=3.0.0 <3.4.0`.
8-
* chore: restrict `analyzer_plugin` version to `>=0.9.0 <0.10.0`.
5+
* feat: add [Checkstyle](https://dartcodemetrics.dev/docs/cli/analyze#checkstyle) format reporter.
96
* feat: add [prefer-immediate-return](https://dartcodemetrics.dev/docs/rules/common/prefer-immediate-return) rule
107

118
## 4.12.0

lib/src/cli/commands/analyze_command.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ class AnalyzeCommand extends BaseCommand {
174174
..addFlag(
175175
FlagNames.fatalWarnings,
176176
help: 'Treat warning level issues as fatal.',
177-
defaultsTo: true,
177+
// TODO(dkrutrkikh): activate on next major version
178+
// defaultsTo: true,
178179
);
179180
}
180181
}

lib/src/cli/commands/check_unused_code_command.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ class CheckUnusedCodeCommand extends BaseCommand {
101101
..addFlag(
102102
FlagNames.fatalOnUnused,
103103
help: 'Treat find unused code as fatal.',
104-
defaultsTo: true,
104+
// TODO(dkrutrkikh): activate on next major version
105+
// defaultsTo: true,
105106
);
106107
}
107108
}

lib/src/cli/commands/check_unused_files_command.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ class CheckUnusedFilesCommand extends BaseCommand {
109109
..addFlag(
110110
FlagNames.fatalOnUnused,
111111
help: 'Treat find unused file as fatal.',
112-
defaultsTo: true,
112+
// TODO(dkrutrkikh): activate on next major version
113+
// defaultsTo: true,
113114
);
114115
}
115116

lib/src/cli/commands/check_unused_l10n_command.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ class CheckUnusedL10nCommand extends BaseCommand {
106106
..addFlag(
107107
FlagNames.fatalOnUnused,
108108
help: 'Treat find unused l10n as fatal.',
109-
defaultsTo: true,
109+
// TODO(dkrutrkikh): activate on next major version
110+
// defaultsTo: true,
110111
);
111112
}
112113
}

test/src/cli/commands/analyze_command_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const _usage = 'Collect code metrics, rules and anti-patterns violations.\n'
4141
' --[no-]fatal-style Treat style level issues as fatal.\n'
4242
' --[no-]fatal-performance Treat performance level issues as fatal.\n'
4343
' --[no-]fatal-warnings Treat warning level issues as fatal.\n'
44-
' (defaults to on)\n'
4544
'\n'
4645
'Run "metrics help" to see global options.';
4746

test/src/cli/commands/check_unused_code_command_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const _usage = 'Check unused code in *.dart files.\n'
2626
'\n'
2727
'\n'
2828
' --[no-]fatal-unused Treat find unused code as fatal.\n'
29-
' (defaults to on)\n'
3029
'\n'
3130
'Run "metrics help" to see global options.';
3231

test/src/cli/commands/check_unused_files_command_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const _usage = 'Check unused *.dart files.\n'
2626
'\n'
2727
'\n'
2828
' --[no-]fatal-unused Treat find unused file as fatal.\n'
29-
' (defaults to on)\n'
3029
'\n'
3130
'\n'
3231
'-d, --[no-]delete-files Delete all unused files.\n'

test/src/cli/commands/check_unused_l10n_command_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const _usage = 'Check unused localization in *.dart files.\n'
2727
'\n'
2828
'\n'
2929
' --[no-]fatal-unused Treat find unused l10n as fatal.\n'
30-
' (defaults to on)\n'
3130
'\n'
3231
'Run "metrics help" to see global options.';
3332

website/docs/cli/analyze.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Usage: metrics analyze [arguments...] <directories>
5151
--[no-]fatal-style Treat style level issues as fatal.
5252
--[no-]fatal-performance Treat performance level issues as fatal.
5353
--[no-]fatal-warnings Treat warning level issues as fatal.
54-
(defaults to on)
5554
```
5655

5756
## Output example {#output-example}

website/docs/cli/check-unused-code.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Usage: metrics check-unused-code [arguments] <directories>
4040
4141
4242
--[no-]fatal-unused Treat find unused file as fatal.
43-
(defaults to on)
4443
```
4544

4645
## Monorepo support

website/docs/cli/check-unused-files.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Usage: metrics check-unused-files [arguments...] <directories>
3333
3434
3535
--[no-]fatal-unused Treat find unused file as fatal.
36-
(defaults to on)
3736
3837
-d, --[no-]delete-files Delete all unused files.
3938
```

website/docs/cli/check-unused-l10n.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ Usage: metrics check-unused-l10n [arguments] <directories>
5858
5959
6060
--[no-]fatal-unused Treat find unused l10n as fatal.
61-
(defaults to on)
6261
```
6362

6463
## Output example {#output-example}

0 commit comments

Comments
 (0)