File tree Expand file tree Collapse file tree 6 files changed +34
-9
lines changed Expand file tree Collapse file tree 6 files changed +34
-9
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ include: package:very_good_analysis/analysis_options.yaml
3535This 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
Original file line number Diff line number Diff line change 11name : very_good_analysis
2- version : 10.0.0-rc.2
2+ version : 10.0.0
33description : Lint rules for Dart and Flutter used internally at Very Good Ventures.
44repository : https://github.com/VeryGoodOpenSource/very_good_analysis
55issue_tracker : https://github.com/VeryGoodOpenSource/very_good_analysis/issues
Original file line number Diff line number Diff line change 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` .
1717library ;
1818
1919import '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` .
3030final _latestAnalysisVersionRegExp = RegExp (
3131 r'analysis_options\.(\d+\.\d+\.\d+)\.yaml' ,
3232);
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ The script also accepts a specific version as an argument to analyze:
6161dart 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 🔍
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments