Skip to content

Commit

Permalink
add no_wildcard_variable_uses; rev to a new major version (#165)
Browse files Browse the repository at this point in the history
* add no_wildcard_variable_uses; rev to a new major version

* regen docs

* test against sdk 3.1
  • Loading branch information
devoncarew committed Oct 23, 2023
1 parent 7b0f556 commit 2cf8403
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
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 }}

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`:
Expand Down
1 change: 1 addition & 0 deletions lib/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ linter:
- 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
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -10,7 +10,7 @@ topics:
- lints

environment:
sdk: ^3.0.0
sdk: ^3.1.0

# NOTE: Code is not allowed in this package - do not add dependencies.
# dependencies:
Expand Down
1 change: 1 addition & 0 deletions rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |
Expand Down

0 comments on commit 2cf8403

Please sign in to comment.