Skip to content

Commit 3bf33d6

Browse files
parloughCommit Queue
authored andcommitted
[analyzer/linter] Remove unused lint rule description field
Looks like this was added in https://dart-review.googlesource.com/c/sdk/+/255280, but since the longer descriptions are stored in and used from the messages.yaml file, it looks like it's not needed. Change-Id: I2feb26eeda7c3d76f2567d9e0a894acd25d713ff Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/384825 Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]>
1 parent 35bbfb2 commit 3bf33d6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/analyzer/lib/src/lint/linter.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ abstract class LintRule {
206206
/// Lint name.
207207
final String name;
208208

209-
/// The documentation for the lint that should appear on the Diagnostic
210-
/// messages page. This field should never be accessed in any code in `lib` or
211-
/// `bin`.
212-
final String? documentation;
213-
214209
/// The state of a lint, and optionally since when the state began.
215210
final State state;
216211

@@ -220,7 +215,6 @@ abstract class LintRule {
220215
required this.description,
221216
required this.details,
222217
State? state,
223-
this.documentation,
224218
}) : state = state ?? State.stable();
225219

226220
/// Indicates whether the lint rule can work with just the parsed information

0 commit comments

Comments
 (0)