Skip to content

Commit 7a889f9

Browse files
chore: v10.0.0 (#170)
* chore: v10.0.0 * test: update all vga rules test
1 parent b9bc6f5 commit 7a889f9

File tree

6 files changed

+34
-9
lines changed

6 files changed

+34
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ include: package:very_good_analysis/analysis_options.yaml
3535
This will ensure you always use the latest version of the lints. If you wish to restrict the lint version, specify a version of `analysis_options.yaml` instead:
3636

3737
```yaml
38-
include: package:very_good_analysis/analysis_options.9.0.0.yaml
38+
include: package:very_good_analysis/analysis_options.10.0.0.yaml
3939
```
4040

4141
## Suppressing Lints
@@ -120,7 +120,7 @@ Below is a list of rules that are not enabled by default together with the reaso
120120
| [`use_decorated_box`](https://dart.dev/tools/linter-rules/use_decorated_box) | [Has unresolved malfunctions](https://github.com/dart-lang/linter/issues/3286) |
121121
<!-- end:excluded_rules_table -->
122122

123-
[analysis_options_yaml]: https://github.com/VeryGoodOpenSource/very_good_analysis/blob/main/lib/analysis_options.9.0.0.yaml
123+
[analysis_options_yaml]: https://github.com/VeryGoodOpenSource/very_good_analysis/blob/main/lib/analysis_options.10.0.0.yaml
124124
[ci_badge]: https://github.com/VeryGoodOpenSource/very_good_analysis/workflows/ci/badge.svg
125125
[ci_badge_link]: https://github.com/VeryGoodOpenSource/very_good_analysis/actions
126126
[badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: very_good_analysis
2-
version: 10.0.0-rc.2
2+
version: 10.0.0
33
description: Lint rules for Dart and Flutter used internally at Very Good Ventures.
44
repository: https://github.com/VeryGoodOpenSource/very_good_analysis
55
issue_tracker: https://github.com/VeryGoodOpenSource/very_good_analysis/issues

tool/bump_version/lib/bump_version.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/// ```
1414
///
1515
/// Where `<new_version>` is the new version to bump to in the format `x.y.z`.
16-
/// For example: `9.0.0`.
16+
/// For example: `10.0.0`.
1717
library;
1818

1919
import 'dart:io';
@@ -23,10 +23,10 @@ import 'dart:io';
2323
/// Given the following:
2424
///
2525
/// ```sh
26-
/// include: package:very_good_analysis/analysis_options.9.0.0.yaml
26+
/// include: package:very_good_analysis/analysis_options.10.0.0.yaml
2727
/// ```
2828
///
29-
/// It is expected that the first matched group will be `9.0.0`.
29+
/// It is expected that the first matched group will be `10.0.0`.
3030
final _latestAnalysisVersionRegExp = RegExp(
3131
r'analysis_options\.(\d+\.\d+\.\d+)\.yaml',
3232
);

tool/linter_rules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The script also accepts a specific version as an argument to analyze:
6161
dart bin/analyze.dart $version
6262
```
6363

64-
Where version is the existing Very Good Analysis version you would like to analyze, for example `9.0.0`.
64+
Where version is the existing Very Good Analysis version you would like to analyze, for example `10.0.0`.
6565

6666

6767
## Check and remove deprecated rules 🔍

tool/linter_rules/test/src/all_vga_rules_test.dart

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void main() {
66
test('returns all very good analysis rules', () async {
77
final rules = await allVeryGoodAnalysisRules(
88
filePath: 'test/test_data',
9-
version: '9.0.0',
9+
version: '10.0.0',
1010
);
1111

1212
expect(rules, [
@@ -19,6 +19,19 @@ void main() {
1919
'avoid_catching_errors',
2020
'avoid_double_and_int_checks',
2121
'avoid_dynamic_calls',
22+
'deprecated_member_use_from_same_package',
23+
'discarded_futures',
24+
'matching_super_parameters',
25+
'no_literal_bool_comparisons',
26+
'prefer_foreach',
27+
'require_trailing_commas',
28+
'switch_on_type',
29+
'unnecessary_ignore',
30+
'unnecessary_null_aware_operator_on_extension_on_nullable',
31+
'unnecessary_unawaited',
32+
'unreachable_from_main',
33+
'use_null_aware_elements',
34+
'use_truncating_division',
2235
]);
2336
});
2437

tool/linter_rules/test/test_data/analysis_options.9.0.0.yaml renamed to tool/linter_rules/test/test_data/analysis_options.10.0.0.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,16 @@ linter:
3030
- avoid_catching_errors
3131
- avoid_double_and_int_checks
3232
- avoid_dynamic_calls
33-
33+
- deprecated_member_use_from_same_package
34+
- discarded_futures
35+
- matching_super_parameters
36+
- no_literal_bool_comparisons
37+
- prefer_foreach
38+
- require_trailing_commas
39+
- switch_on_type
40+
- unnecessary_ignore
41+
- unnecessary_null_aware_operator_on_extension_on_nullable
42+
- unnecessary_unawaited
43+
- unreachable_from_main
44+
- use_null_aware_elements
45+
- use_truncating_division

0 commit comments

Comments
 (0)