Skip to content

Commit 9f43210

Browse files
authored
add strict_top_level_inference to the core lint set (#864)
1 parent 15c7fe9 commit 9f43210

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

pkgs/lints/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 6.0.0-wip
22

3+
- `core`:
4+
- added [strict_top_level_inference] (https://github.com/dart-lang/core/issues/836)
35
- `recommended`:
46
- added [unnecessary_underscores] (https://github.com/dart-lang/core/issues/856)
57
- Require Dart 3.7.

pkgs/lints/lib/core.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ linter:
3333
- prefer_typing_uninitialized_variables
3434
- provide_deprecation_message
3535
- secure_pubspec_urls
36+
- strict_top_level_inference
3637
- type_literal_in_constant_pattern
3738
- unintended_html_in_doc_comment
3839
- unnecessary_overrides

pkgs/lints/rules.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
| [`prefer_typing_uninitialized_variables`](https://dart.dev/lints/prefer_typing_uninitialized_variables) | Prefer typing uninitialized variables and fields. ||
3333
| [`provide_deprecation_message`](https://dart.dev/lints/provide_deprecation_message) | Provide a deprecation message, via `@Deprecated("message")`. | |
3434
| [`secure_pubspec_urls`](https://dart.dev/lints/secure_pubspec_urls) | Use secure urls in `pubspec.yaml`. | |
35+
| [`strict_top_level_inference`](https://dart.dev/lints/strict_top_level_inference) | Specify type annotations. ||
3536
| [`type_literal_in_constant_pattern`](https://dart.dev/lints/type_literal_in_constant_pattern) | Don't use constant patterns with type literals. ||
3637
| [`unintended_html_in_doc_comment`](https://dart.dev/lints/unintended_html_in_doc_comment) | Use of angle brackets in a doc comment is treated as HTML by Markdown. | |
3738
| [`unnecessary_overrides`](https://dart.dev/lints/unnecessary_overrides) | Don't override a method to do a super method invocation with the same parameters. ||

0 commit comments

Comments
 (0)