diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 005c3ab..f416320 100644 --- a/.github/workflows/publish.yaml +++ b/.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/CHANGELOG.md b/CHANGELOG.md index 3012455..be12b32 100644 --- a/CHANGELOG.md +++ b/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/pubspec.yaml b/pubspec.yaml index 3a0b6df..e157af3 100644 --- a/pubspec.yaml +++ b/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/tool/rules.json b/tool/rules.json index d853c15..5dff4a9 100644 --- a/tool/rules.json +++ b/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",