diff --git a/pkgs/lints/.github/workflows/publish.yaml b/pkgs/lints/.github/workflows/publish.yaml index 005c3ab8..f4163209 100644 --- a/pkgs/lints/.github/workflows/publish.yaml +++ b/pkgs/lints/.github/workflows/publish.yaml @@ -12,5 +12,3 @@ jobs: publish: if: ${{ github.repository_owner == 'dart-lang' }} uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main - with: - sdk: beta diff --git a/pkgs/lints/CHANGELOG.md b/pkgs/lints/CHANGELOG.md index 3012455d..be12b329 100644 --- a/pkgs/lints/CHANGELOG.md +++ b/pkgs/lints/CHANGELOG.md @@ -1,8 +1,12 @@ +## 5.1.1 + +- Updated the SDK lower bound to 3.6. + ## 5.1.0 - `core`: - added [unintended_html_in_doc_comment] (https://github.com/dart-lang/lints/issues/192) -- Updated the SDK lower-bound to 3.6. +- Updated the SDK lower bound to 3.6 (dev). [unintended_html_in_doc_comment]: https://dart.dev/lints/unintended_html_in_doc_comment diff --git a/pkgs/lints/pubspec.yaml b/pkgs/lints/pubspec.yaml index 3a0b6df4..e157af3d 100644 --- a/pkgs/lints/pubspec.yaml +++ b/pkgs/lints/pubspec.yaml @@ -1,5 +1,5 @@ name: lints -version: 5.1.0 +version: 5.1.1 description: > Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. @@ -10,7 +10,7 @@ topics: - lints environment: - sdk: ^3.6.0-0 + sdk: ^3.6.0 # NOTE: Code is not allowed in this package - do not add dependencies. # dependencies: diff --git a/pkgs/lints/tool/rules.json b/pkgs/lints/tool/rules.json index d853c158..5dff4a90 100644 --- a/pkgs/lints/tool/rules.json +++ b/pkgs/lints/tool/rules.json @@ -109,6 +109,11 @@ "description": "Avoid using `forEach` with a function literal.", "fixStatus": "hasFix" }, + { + "name": "avoid_futureor_void", + "description": "Avoid using 'FutureOr' as the type of a result.", + "fixStatus": "noFix" + }, { "name": "avoid_implementing_value_types", "description": "Don't implement classes that override `==`.", @@ -584,6 +589,11 @@ "description": "Omit obvious type annotations for local variables.", "fixStatus": "hasFix" }, + { + "name": "omit_obvious_property_types", + "description": "Omit obvious type annotations for top-level and static variables.", + "fixStatus": "hasFix" + }, { "name": "one_member_abstracts", "description": "Avoid defining a one-member abstract class when a simple function will do.", @@ -889,6 +899,11 @@ "description": "Specify non-obvious type annotations for local variables.", "fixStatus": "hasFix" }, + { + "name": "specify_nonobvious_property_types", + "description": "Specify non-obvious type annotations for top-level and static variables.", + "fixStatus": "hasFix" + }, { "name": "super_goes_last", "description": "Place the `super` call last in a constructor initialization list.", @@ -1074,6 +1089,11 @@ "description": "Avoid unsafe HTML APIs.", "fixStatus": "noFix" }, + { + "name": "unsafe_variance", + "description": "Unsafe type: Has a type variable in a non-covariant position.", + "fixStatus": "noFix" + }, { "name": "use_build_context_synchronously", "description": "Do not use `BuildContext` across asynchronous gaps.", @@ -1082,7 +1102,7 @@ { "name": "use_colored_box", "description": "Use `ColoredBox`.", - "fixStatus": "needsFix" + "fixStatus": "hasFix" }, { "name": "use_decorated_box",