From 249be252daa943827dbe7d9cc7e46d8399fa7b07 Mon Sep 17 00:00:00 2001 From: Marcos Sevilla Date: Tue, 16 Sep 2025 15:47:56 +0200 Subject: [PATCH 1/2] chore: v10.0.0 --- README.md | 4 ++-- pubspec.yaml | 2 +- tool/bump_version/lib/bump_version.dart | 6 +++--- tool/linter_rules/README.md | 2 +- tool/linter_rules/test/src/all_vga_rules_test.dart | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1cc8903..a7602d8 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ include: package:very_good_analysis/analysis_options.yaml 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: ```yaml -include: package:very_good_analysis/analysis_options.9.0.0.yaml +include: package:very_good_analysis/analysis_options.10.0.0.yaml ``` ## Suppressing Lints @@ -120,7 +120,7 @@ Below is a list of rules that are not enabled by default together with the reaso | [`use_decorated_box`](https://dart.dev/tools/linter-rules/use_decorated_box) | [Has unresolved malfunctions](https://github.com/dart-lang/linter/issues/3286) | -[analysis_options_yaml]: https://github.com/VeryGoodOpenSource/very_good_analysis/blob/main/lib/analysis_options.9.0.0.yaml +[analysis_options_yaml]: https://github.com/VeryGoodOpenSource/very_good_analysis/blob/main/lib/analysis_options.10.0.0.yaml [ci_badge]: https://github.com/VeryGoodOpenSource/very_good_analysis/workflows/ci/badge.svg [ci_badge_link]: https://github.com/VeryGoodOpenSource/very_good_analysis/actions [badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg diff --git a/pubspec.yaml b/pubspec.yaml index d4c25f9..fc187ad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: very_good_analysis -version: 10.0.0-rc.2 +version: 10.0.0 description: Lint rules for Dart and Flutter used internally at Very Good Ventures. repository: https://github.com/VeryGoodOpenSource/very_good_analysis issue_tracker: https://github.com/VeryGoodOpenSource/very_good_analysis/issues diff --git a/tool/bump_version/lib/bump_version.dart b/tool/bump_version/lib/bump_version.dart index 2f019e4..aa28bef 100644 --- a/tool/bump_version/lib/bump_version.dart +++ b/tool/bump_version/lib/bump_version.dart @@ -13,7 +13,7 @@ /// ``` /// /// Where `` is the new version to bump to in the format `x.y.z`. -/// For example: `9.0.0`. +/// For example: `10.0.0`. library; import 'dart:io'; @@ -23,10 +23,10 @@ import 'dart:io'; /// Given the following: /// /// ```sh -/// include: package:very_good_analysis/analysis_options.9.0.0.yaml +/// include: package:very_good_analysis/analysis_options.10.0.0.yaml /// ``` /// -/// It is expected that the first matched group will be `9.0.0`. +/// It is expected that the first matched group will be `10.0.0`. final _latestAnalysisVersionRegExp = RegExp( r'analysis_options\.(\d+\.\d+\.\d+)\.yaml', ); diff --git a/tool/linter_rules/README.md b/tool/linter_rules/README.md index 2eb7861..00a936c 100644 --- a/tool/linter_rules/README.md +++ b/tool/linter_rules/README.md @@ -61,7 +61,7 @@ The script also accepts a specific version as an argument to analyze: dart bin/analyze.dart $version ``` -Where version is the existing Very Good Analysis version you would like to analyze, for example `9.0.0`. +Where version is the existing Very Good Analysis version you would like to analyze, for example `10.0.0`. ## Check and remove deprecated rules 🔍 diff --git a/tool/linter_rules/test/src/all_vga_rules_test.dart b/tool/linter_rules/test/src/all_vga_rules_test.dart index 1331f13..366554d 100644 --- a/tool/linter_rules/test/src/all_vga_rules_test.dart +++ b/tool/linter_rules/test/src/all_vga_rules_test.dart @@ -6,7 +6,7 @@ void main() { test('returns all very good analysis rules', () async { final rules = await allVeryGoodAnalysisRules( filePath: 'test/test_data', - version: '9.0.0', + version: '10.0.0', ); expect(rules, [ From fc47c87829392fadf014faa8993189c00814ef4a Mon Sep 17 00:00:00 2001 From: Marcos Sevilla Date: Tue, 16 Sep 2025 16:37:27 +0200 Subject: [PATCH 2/2] test: update all vga rules test --- tool/linter_rules/test/src/all_vga_rules_test.dart | 13 +++++++++++++ ...ons.9.0.0.yaml => analysis_options.10.0.0.yaml} | 14 +++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) rename tool/linter_rules/test/test_data/{analysis_options.9.0.0.yaml => analysis_options.10.0.0.yaml} (66%) diff --git a/tool/linter_rules/test/src/all_vga_rules_test.dart b/tool/linter_rules/test/src/all_vga_rules_test.dart index 366554d..6cb0f29 100644 --- a/tool/linter_rules/test/src/all_vga_rules_test.dart +++ b/tool/linter_rules/test/src/all_vga_rules_test.dart @@ -19,6 +19,19 @@ void main() { 'avoid_catching_errors', 'avoid_double_and_int_checks', 'avoid_dynamic_calls', + 'deprecated_member_use_from_same_package', + 'discarded_futures', + 'matching_super_parameters', + 'no_literal_bool_comparisons', + 'prefer_foreach', + 'require_trailing_commas', + 'switch_on_type', + 'unnecessary_ignore', + 'unnecessary_null_aware_operator_on_extension_on_nullable', + 'unnecessary_unawaited', + 'unreachable_from_main', + 'use_null_aware_elements', + 'use_truncating_division', ]); }); diff --git a/tool/linter_rules/test/test_data/analysis_options.9.0.0.yaml b/tool/linter_rules/test/test_data/analysis_options.10.0.0.yaml similarity index 66% rename from tool/linter_rules/test/test_data/analysis_options.9.0.0.yaml rename to tool/linter_rules/test/test_data/analysis_options.10.0.0.yaml index 69fbf16..ba25128 100644 --- a/tool/linter_rules/test/test_data/analysis_options.9.0.0.yaml +++ b/tool/linter_rules/test/test_data/analysis_options.10.0.0.yaml @@ -30,4 +30,16 @@ linter: - avoid_catching_errors - avoid_double_and_int_checks - avoid_dynamic_calls - + - deprecated_member_use_from_same_package + - discarded_futures + - matching_super_parameters + - no_literal_bool_comparisons + - prefer_foreach + - require_trailing_commas + - switch_on_type + - unnecessary_ignore + - unnecessary_null_aware_operator_on_extension_on_nullable + - unnecessary_unawaited + - unreachable_from_main + - use_null_aware_elements + - use_truncating_division