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..6cb0f29 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, [ @@ -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