Skip to content

Commit 32a45ec

Browse files
committed
Deprecate the missingCodeBlockLanguage warning.
1 parent 67f72d5 commit 32a45ec

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/src/warnings.dart

+8-6
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,17 @@ enum PackageWarning implements Comparable<PackageWarning> {
279279
'deprecated dartdoc usage: {0}',
280280
shortHelp: 'A dartdoc directive has a deprecated format.',
281281
),
282+
// TODO(kallentu): Remove this warning.
282283
missingCodeBlockLanguage(
283284
'missing-code-block-language',
284285
'missing code block language: {0}',
285-
shortHelp: 'A fenced code block is missing a specified language.',
286-
longHelp:
287-
'To enable proper syntax highlighting of Markdown code blocks, Dartdoc '
288-
'requires code blocks to specify the language used after the initial '
289-
'declaration. As an example, to specify Dart you would open the '
290-
'Markdown code block with ```dart or ~~~dart.',
286+
shortHelp: '(Deprecated: Use `missing_code_block_language_in_doc_comment` '
287+
'lint) A fenced code block is missing a specified language.',
288+
longHelp: '(Deprecated: Use `missing_code_block_language_in_doc_comment` '
289+
'lint) To enable proper syntax highlighting of Markdown code blocks, '
290+
'Dartdoc requires code blocks to specify the language used after the '
291+
'initial declaration. As an example, to specify Dart you would open '
292+
'the Markdown code block with ```dart or ~~~dart.',
291293
defaultWarningMode: PackageWarningMode.ignore,
292294
);
293295

0 commit comments

Comments
 (0)