Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) |
<!-- end:excluded_rules_table -->

[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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions tool/bump_version/lib/bump_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// ```
///
/// Where `<new_version>` 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';
Expand All @@ -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',
);
Expand Down
2 changes: 1 addition & 1 deletion tool/linter_rules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 🔍
Expand Down
15 changes: 14 additions & 1 deletion tool/linter_rules/test/src/all_vga_rules_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand All @@ -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',
]);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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