Skip to content

Commit 2ac5765

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: correct invalid text about unsupported YAML options
Maybe these errors were once only used for the plugin section, but they are now used to report any unknown YAML options in any section. Change-Id: I31c9369c1cc7c6d18426036d69b3a5531f2db7ba Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/390922 Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent c1d7ffd commit 2ac5765

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pkg/analyzer/lib/src/analysis_options/error/option_codes.g.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ class AnalysisOptionsWarningCode extends ErrorCode {
287287
"The option '{1}' isn't supported by '{0}'.",
288288
);
289289

290-
/// An error code indicating that a plugin is being configured with an
290+
/// An error code indicating that a YAML section is being configured with an
291291
/// unsupported option where there is just one legal value.
292292
///
293293
/// Parameters:
294-
/// 0: the plugin name
294+
/// 0: the section name
295295
/// 1: the unsupported option key
296296
/// 2: the legal value
297297
static const AnalysisOptionsWarningCode UNSUPPORTED_OPTION_WITH_LEGAL_VALUE =
@@ -301,11 +301,11 @@ class AnalysisOptionsWarningCode extends ErrorCode {
301301
"option: '{2}'.",
302302
);
303303

304-
/// An error code indicating that a plugin is being configured with an
304+
/// An error code indicating that a YAML section is being configured with an
305305
/// unsupported option and legal options are provided.
306306
///
307307
/// Parameters:
308-
/// 0: the plugin name
308+
/// 0: the section name
309309
/// 1: the unsupported option key
310310
/// 2: legal values
311311
static const AnalysisOptionsWarningCode UNSUPPORTED_OPTION_WITH_LEGAL_VALUES =

pkg/analyzer/messages.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,23 +231,23 @@ AnalysisOptionsWarningCode:
231231
problemMessage: "The option '{1}' isn't supported by '{0}'. Try using the only supported option: '{2}'."
232232
hasPublishedDocs: false
233233
comment: |-
234-
An error code indicating that a plugin is being configured with an
234+
An error code indicating that a YAML section is being configured with an
235235
unsupported option where there is just one legal value.
236236

237237
Parameters:
238-
0: the plugin name
238+
0: the section name
239239
1: the unsupported option key
240240
2: the legal value
241241
UNSUPPORTED_OPTION_WITH_LEGAL_VALUES:
242242
problemMessage: "The option '{1}' isn't supported by '{0}'."
243243
correctionMessage: "Try using one of the supported options: {2}."
244244
hasPublishedDocs: false
245245
comment: |-
246-
An error code indicating that a plugin is being configured with an
246+
An error code indicating that a YAML section is being configured with an
247247
unsupported option and legal options are provided.
248248

249249
Parameters:
250-
0: the plugin name
250+
0: the section name
251251
1: the unsupported option key
252252
2: legal values
253253
UNSUPPORTED_VALUE:

0 commit comments

Comments
 (0)