add no_wildcard_variable_uses; rev to a new major version (dart-lang/lints#165)
* add no_wildcard_variable_uses; rev to a new major version
* regen docs
* test against sdk 3.1
diff --git a/pkgs/lints/.github/workflows/validate.yml b/pkgs/lints/.github/workflows/validate.yml
index cd5f03c..f85a795 100644
--- a/pkgs/lints/.github/workflows/validate.yml
+++ b/pkgs/lints/.github/workflows/validate.yml
@@ -17,11 +17,11 @@
strategy:
fail-fast: false
matrix:
- sdk: [3.0.0, stable, beta]
+ sdk: [3.1, stable, beta]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- - uses: dart-lang/setup-dart@8a4b97ea2017cc079571daec46542f76189836b1
+ - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: ${{ matrix.sdk }}
diff --git a/pkgs/lints/CHANGELOG.md b/pkgs/lints/CHANGELOG.md
index 4924517..11978f7 100644
--- a/pkgs/lints/CHANGELOG.md
+++ b/pkgs/lints/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 4.0.0-wip
+
+- `core`:
+ - added `no_wildcard_variable_uses`
+- Updated the SDK lower-bound to 3.1.
+
## 3.0.0
- `core`:
diff --git a/pkgs/lints/lib/core.yaml b/pkgs/lints/lib/core.yaml
index e986edc..990d753 100644
--- a/pkgs/lints/lib/core.yaml
+++ b/pkgs/lints/lib/core.yaml
@@ -22,6 +22,7 @@
- hash_and_equals
- implicit_call_tearoffs
- no_duplicate_case_values
+ - no_wildcard_variable_uses
- non_constant_identifier_names
- null_check_on_nullable_type_parameter
- package_prefixed_library_names
diff --git a/pkgs/lints/pubspec.yaml b/pkgs/lints/pubspec.yaml
index 647ffa7..6c02d5b 100644
--- a/pkgs/lints/pubspec.yaml
+++ b/pkgs/lints/pubspec.yaml
@@ -1,5 +1,5 @@
name: lints
-version: 3.0.0
+version: 4.0.0-wip
description: >
Official Dart lint rules. Defines the 'core' and 'recommended' set of lints
suggested by the Dart team.
@@ -10,7 +10,7 @@
- lints
environment:
- sdk: ^3.0.0
+ sdk: ^3.1.0
# NOTE: Code is not allowed in this package - do not add dependencies.
# dependencies:
diff --git a/pkgs/lints/rules.md b/pkgs/lints/rules.md
index 70dee71..04e3921 100644
--- a/pkgs/lints/rules.md
+++ b/pkgs/lints/rules.md
@@ -21,6 +21,7 @@
| [`hash_and_equals`](https://dart.dev/lints/hash_and_equals) | Always override `hashCode` if overriding `==`. | ✅ |
| [`implicit_call_tearoffs`](https://dart.dev/lints/implicit_call_tearoffs) | Explicitly tear-off `call` methods when using an object as a Function. | ✅ |
| [`no_duplicate_case_values`](https://dart.dev/lints/no_duplicate_case_values) | Don't use more than one case with same value. | ✅ |
+| [`no_wildcard_variable_uses`](https://dart.dev/lints/no_wildcard_variable_uses) | Don't use wildcard parameters or variables. | |
| [`non_constant_identifier_names`](https://dart.dev/lints/non_constant_identifier_names) | Name non-constant identifiers using lowerCamelCase. | ✅ |
| [`null_check_on_nullable_type_parameter`](https://dart.dev/lints/null_check_on_nullable_type_parameter) | Don't use null check on a potentially nullable type parameter. | ✅ |
| [`package_prefixed_library_names`](https://dart.dev/lints/package_prefixed_library_names) | Prefix library names with the package name and a dot-separated path. | |