From 0ac7f8a90552075a54a1c700c6acb4cae1cd0ce4 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 23 Sep 2024 09:01:54 -0700 Subject: [PATCH] add 'unintended_html_in_doc_comment' to core --- CHANGELOG.md | 9 ++++++--- lib/core.yaml | 1 + rules.md | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c81e60..c15a9ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,17 @@ ## 5.0.0-wip +- `core`: + - added [unintended_html_in_doc_comment] (https://github.com/dart-lang/lints/issues/192) - `recommended`: - - added [unnecessary_library_name] (https://github.com/dart-lang/lints/issues/181) - added [invalid_runtime_check_with_js_interop_types] (https://github.com/dart-lang/lints/issues/188) + - added [unnecessary_library_name] (https://github.com/dart-lang/lints/issues/181) - removed [avoid_null_checks_in_equality_operators] (https://github.com/dart-lang/lints/issues/200) - Updated the SDK lower-bound to 3.5. -[unnecessary_library_name]: https://dart.dev/lints/unnecessary_library_name -[invalid_runtime_check_with_js_interop_types]: https://dart.dev/tools/linter-rules/invalid_runtime_check_with_js_interop_types [avoid_null_checks_in_equality_operators]: https://dart.dev/tools/linter-rules/avoid_null_checks_in_equality_operators +[invalid_runtime_check_with_js_interop_types]: https://dart.dev/tools/linter-rules/invalid_runtime_check_with_js_interop_types +[unintended_html_in_doc_comment]: https://dart.dev/lints/unnecessary_library_name +[unnecessary_library_name]: https://dart.dev/lints/unnecessary_library_name ## 4.0.0 diff --git a/lib/core.yaml b/lib/core.yaml index 1cfe995..ca8a8ca 100644 --- a/lib/core.yaml +++ b/lib/core.yaml @@ -34,6 +34,7 @@ linter: - provide_deprecation_message - secure_pubspec_urls - type_literal_in_constant_pattern + - unintended_html_in_doc_comment - unnecessary_overrides - unrelated_type_equality_checks - use_string_in_part_of_directives diff --git a/rules.md b/rules.md index 6aac54e..e4dd15e 100644 --- a/rules.md +++ b/rules.md @@ -33,6 +33,7 @@ | [`provide_deprecation_message`](https://dart.dev/lints/provide_deprecation_message) | Provide a deprecation message, via `@Deprecated("message")`. | | | [`secure_pubspec_urls`](https://dart.dev/lints/secure_pubspec_urls) | Use secure urls in `pubspec.yaml`. | | | [`type_literal_in_constant_pattern`](https://dart.dev/lints/type_literal_in_constant_pattern) | Don't use constant patterns with type literals. | ✅ | +| [`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. | | | [`unnecessary_overrides`](https://dart.dev/lints/unnecessary_overrides) | Don't override a method to do a super method invocation with the same parameters. | ✅ | | [`unrelated_type_equality_checks`](https://dart.dev/lints/unrelated_type_equality_checks) | Equality operator `==` invocation with references of unrelated types. | | | [`use_string_in_part_of_directives`](https://dart.dev/lints/use_string_in_part_of_directives) | Use string in part of directives. | ✅ |