Skip to content

Commit e1c76b2

Browse files
parloughCommit Queue
authored andcommitted
[linter] Mark latest diagnostic docs as published
Closes #56882 Change-Id: Id41adea71251731b638aa21e23a452a1dc19ed51 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/395860 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]>
1 parent bb8db16 commit e1c76b2

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

pkg/linter/lib/src/lint_codes.g.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ class LinterLintCode extends LintCode {
722722
correctionMessage:
723723
"Try using conversion methods from 'dart:js_interop' to convert "
724724
"between Dart types and JS interop types.",
725+
hasPublishedDocs: true,
725726
uniqueName: 'invalid_runtime_check_with_js_interop_types_dart_as_js',
726727
);
727728

@@ -807,6 +808,7 @@ class LinterLintCode extends LintCode {
807808
LintNames.library_annotations,
808809
"This annotation should be attached to a library directive.",
809810
correctionMessage: "Try attaching the annotation to a library directive.",
811+
hasPublishedDocs: true,
810812
);
811813

812814
static const LintCode library_names = LinterLintCode(
@@ -1550,6 +1552,7 @@ class LinterLintCode extends LintCode {
15501552
correctionMessage:
15511553
"Try using backticks around the content with angle brackets, or try "
15521554
"replacing `<` with `&lt;` and `>` with `&gt;`.",
1555+
hasPublishedDocs: true,
15531556
);
15541557

15551558
static const LintCode unnecessary_await_in_return = LinterLintCode(
@@ -1632,6 +1635,7 @@ class LinterLintCode extends LintCode {
16321635
LintNames.unnecessary_library_name,
16331636
"Library names are not necessary.",
16341637
correctionMessage: "Remove the library name.",
1638+
hasPublishedDocs: true,
16351639
);
16361640

16371641
static const LintCode unnecessary_new = LinterLintCode(
@@ -1938,6 +1942,7 @@ class LinterLintCode extends LintCode {
19381942
correctionMessage:
19391943
"Try using truncating division, '~/', instead of regular division "
19401944
"('/') followed by 'toInt()'.",
1945+
hasPublishedDocs: true,
19411946
);
19421947

19431948
static const LintCode valid_regexps = LinterLintCode(

pkg/linter/messages.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4979,7 +4979,7 @@ LintCode:
49794979
correctionMessage: "Try using conversion methods from 'dart:js_interop' to convert between Dart types and JS interop types."
49804980
addedIn: "3.5"
49814981
categories: [errorProne, web]
4982-
hasPublishedDocs: false
4982+
hasPublishedDocs: true
49834983
documentation: |-
49844984
#### Description
49854985
@@ -5415,7 +5415,7 @@ LintCode:
54155415
correctionMessage: "Try attaching the annotation to a library directive."
54165416
addedIn: "2.19"
54175417
categories: [style]
5418-
hasPublishedDocs: false
5418+
hasPublishedDocs: true
54195419
documentation: |-
54205420
#### Description
54215421
@@ -11261,7 +11261,7 @@ LintCode:
1126111261
correctionMessage: "Try using backticks around the content with angle brackets, or try replacing `<` with `&lt;` and `>` with `&gt;`."
1126211262
addedIn: "3.5"
1126311263
categories: [errorProne]
11264-
hasPublishedDocs: false
11264+
hasPublishedDocs: true
1126511265
documentation: |-
1126611266
#### Description
1126711267
@@ -11906,7 +11906,7 @@ LintCode:
1190611906
correctionMessage: "Remove the library name."
1190711907
addedIn: "3.4"
1190811908
categories: [brevity, languageFeatureUsage, style]
11909-
hasPublishedDocs: false
11909+
hasPublishedDocs: true
1191011910
documentation: |-
1191111911
#### Description
1191211912
@@ -14253,7 +14253,7 @@ LintCode:
1425314253
correctionMessage: "Try using truncating division, '~/', instead of regular division ('/') followed by 'toInt()'."
1425414254
addedIn: "3.6"
1425514255
categories: [languageFeatureUsage]
14256-
hasPublishedDocs: false
14256+
hasPublishedDocs: true
1425714257
documentation: |-
1425814258
#### Description
1425914259

0 commit comments

Comments
 (0)