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
35
35
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:
36
36
37
37
` ` ` 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
39
39
` ` `
40
40
41
41
# # Suppressing Lints
@@ -120,7 +120,7 @@ Below is a list of rules that are not enabled by default together with the reaso
120
120
| [`use_decorated_box`](https://dart.dev/tools/linter-rules/use_decorated_box) | [Has unresolved malfunctions](https://github.com/dart-lang/linter/issues/3286) |
121
121
<!-- end:excluded_rules_table -->
122
122
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
124
124
[ci_badge] : https://github.com/VeryGoodOpenSource/very_good_analysis/workflows/ci/badge.svg
125
125
[ci_badge_link] : https://github.com/VeryGoodOpenSource/very_good_analysis/actions
126
126
[badge] : https://img.shields.io/badge/style-very_good_analysis-B22C89.svg
Original file line number Diff line number Diff line change 1
1
name : very_good_analysis
2
- version : 10.0.0-rc.2
2
+ version : 10.0.0
3
3
description : Lint rules for Dart and Flutter used internally at Very Good Ventures.
4
4
repository : https://github.com/VeryGoodOpenSource/very_good_analysis
5
5
issue_tracker : https://github.com/VeryGoodOpenSource/very_good_analysis/issues
Original file line number Diff line number Diff line change 13
13
/// ```
14
14
///
15
15
/// 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` .
17
17
library ;
18
18
19
19
import 'dart:io' ;
@@ -23,10 +23,10 @@ import 'dart:io';
23
23
/// Given the following:
24
24
///
25
25
/// ```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
27
27
/// ```
28
28
///
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` .
30
30
final _latestAnalysisVersionRegExp = RegExp (
31
31
r'analysis_options\.(\d+\.\d+\.\d+)\.yaml' ,
32
32
);
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:
61
61
dart bin/analyze.dart $version
62
62
```
63
63
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` .
65
65
66
66
67
67
## Check and remove deprecated rules 🔍
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ void main() {
6
6
test ('returns all very good analysis rules' , () async {
7
7
final rules = await allVeryGoodAnalysisRules (
8
8
filePath: 'test/test_data' ,
9
- version: '9 .0.0' ,
9
+ version: '10 .0.0' ,
10
10
);
11
11
12
12
expect (rules, [
@@ -19,6 +19,19 @@ void main() {
19
19
'avoid_catching_errors' ,
20
20
'avoid_double_and_int_checks' ,
21
21
'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' ,
22
35
]);
23
36
});
24
37
Original file line number Diff line number Diff line change @@ -30,4 +30,16 @@ linter:
30
30
- avoid_catching_errors
31
31
- avoid_double_and_int_checks
32
32
- 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