Skip to content

Commit

Permalink
add unintended_html_in_doc_comment; rev to 5.1.0 (#211)
Browse files Browse the repository at this point in the history
* add unintended_html_in_doc_comment; rev to 5.1.0

* use 3.6 beta
  • Loading branch information
devoncarew authored Sep 25, 2024
1 parent af68bf0 commit a97011b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
publish:
if: ${{ github.repository_owner == 'dart-lang' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
with:
sdk: beta
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [3.5, stable, beta]
sdk: [beta] # todo: re-add stable

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 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.

[unintended_html_in_doc_comment]: https://dart.dev/lints/unintended_html_in_doc_comment

## 5.0.0

- `recommended`:
Expand Down
1 change: 1 addition & 0 deletions lib/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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: 5.0.0
version: 5.1.0
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.5.0
sdk: ^3.6.0-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 @@ -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. ||
Expand Down
17 changes: 11 additions & 6 deletions tool/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
{
"name": "avoid_catching_errors",
"description": "Don't explicitly catch `Error` or types that implement it.",
"fixStatus": "unregistered"
"fixStatus": "noFix"
},
{
"name": "avoid_classes_with_only_static_members",
Expand Down Expand Up @@ -432,7 +432,7 @@
{
"name": "invalid_runtime_check_with_js_interop_types",
"description": "Avoid runtime type tests with JS interop types where the result may not\n be platform-consistent.",
"fixStatus": "needsFix"
"fixStatus": "needsEvaluation"
},
{
"name": "invariant_booleans",
Expand Down Expand Up @@ -531,7 +531,7 @@
},
{
"name": "no_literal_bool_comparisons",
"description": "Don't compare Boolean expressions to Boolean literals.",
"description": "Don't compare boolean expressions to boolean literals.",
"fixStatus": "hasFix"
},
{
Expand Down Expand Up @@ -884,6 +884,11 @@
"description": "Sort unnamed constructor declarations first.",
"fixStatus": "hasFix"
},
{
"name": "specify_nonobvious_local_variable_types",
"description": "Specify non-obvious type annotations for local variables.",
"fixStatus": "hasFix"
},
{
"name": "super_goes_last",
"description": "Place the `super` call last in a constructor initialization list.",
Expand Down Expand Up @@ -1062,17 +1067,17 @@
{
"name": "unrelated_type_equality_checks",
"description": "Equality operator `==` invocation with references of unrelated types.",
"fixStatus": "unregistered"
"fixStatus": "needsEvaluation"
},
{
"name": "unsafe_html",
"description": "Avoid unsafe HTML APIs.",
"fixStatus": "unregistered"
"fixStatus": "noFix"
},
{
"name": "use_build_context_synchronously",
"description": "Do not use `BuildContext` across asynchronous gaps.",
"fixStatus": "unregistered"
"fixStatus": "noFix"
},
{
"name": "use_colored_box",
Expand Down

0 comments on commit a97011b

Please sign in to comment.