Skip to content

Commit

Permalink
Added a stderr warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
kallentu committed Apr 8, 2024
1 parent 7ec533e commit 68c5fbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/model/documentation_comment.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:analyzer/dart/element/element.dart';
import 'package:args/args.dart';
import 'package:crypto/crypto.dart' as crypto;
Expand Down Expand Up @@ -676,6 +678,8 @@ mixin DocumentationComment
for (var element in firstOfPair) {
final result = element.group(2)!.trim();
if (result.isEmpty) {
stderr.writeln("The warning 'missingCodeBlockLanguage' is deprecated. "
'Use the `missing_code_block_language_in_doc_comment` lint instead.');
warn(PackageWarning.missingCodeBlockLanguage,
message:
'A fenced code block in Markdown should have a language specified');
Expand Down

0 comments on commit 68c5fbf

Please sign in to comment.