Skip to content

Commit 07a8972

Browse files
authored
Add no_wildcard_variable_use and publish (#932)
Closes #832
1 parent 83154f2 commit 07a8972

5 files changed

Lines changed: 11 additions & 2 deletions

File tree

pkgs/lints/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
## 6.1.0-wip
1+
## 6.1.0
22

33
- `recommended`:
44
- added [use_null_aware_elements] (https://github.com/dart-lang/core/issues/899)
5+
- added [no_wildcard_variable_uses] (https://github.com/dart-lang/core/issues/832)
56
- Run `dart format` with the new style.
67

78
[use_null_aware_elements]: https://dart.dev/lints/use_null_aware_elements
9+
[no_wildcard_variable_uses]: https://dart.dev/lints/no_wildcard_variable_uses
810

911
## 6.0.0
1012

pkgs/lints/lib/recommended.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ linter:
2929
- library_private_types_in_public_api
3030
- no_leading_underscores_for_library_prefixes
3131
- no_leading_underscores_for_local_identifiers
32+
- no_wildcard_variable_uses
3233
- null_closures
3334
- overridden_fields
3435
- package_names

pkgs/lints/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: lints
2-
version: 6.1.0-wip
2+
version: 6.1.0
33
description: >
44
Official Dart lint rules. Defines the 'core' and 'recommended' set of lints
55
suggested by the Dart team.

pkgs/lints/rules.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
| [`library_private_types_in_public_api`](https://dart.dev/lints/library_private_types_in_public_api) | Avoid using private types in public APIs. | |
6666
| [`no_leading_underscores_for_library_prefixes`](https://dart.dev/lints/no_leading_underscores_for_library_prefixes) | Avoid leading underscores for library prefixes. ||
6767
| [`no_leading_underscores_for_local_identifiers`](https://dart.dev/lints/no_leading_underscores_for_local_identifiers) | Avoid leading underscores for local identifiers. ||
68+
| [`no_wildcard_variable_uses`](https://dart.dev/lints/no_wildcard_variable_uses) | Don't use wildcard parameters or variables. | |
6869
| [`null_closures`](https://dart.dev/lints/null_closures) | Do not pass `null` as an argument where a closure is expected. ||
6970
| [`overridden_fields`](https://dart.dev/lints/overridden_fields) | Don't override fields. | |
7071
| [`package_names`](https://dart.dev/lints/package_names) | Use `lowercase_with_underscores` for package names. | |

pkgs/lints/tool/rules.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,11 @@
864864
"description": "Use secure urls in `pubspec.yaml`.",
865865
"fixStatus": "noFix"
866866
},
867+
{
868+
"name": "simplify_variable_pattern",
869+
"description": "Avoid unnecessary member names in variable patterns.",
870+
"fixStatus": "hasFix"
871+
},
867872
{
868873
"name": "sized_box_for_whitespace",
869874
"description": "`SizedBox` for whitespace.",

0 commit comments

Comments
 (0)