Bump dartdoc to 0.32.3 and tighten doc quality checker (#63111)
This commit is contained in:
committed by
GitHub
parent
b7a1a397b2
commit
e49a57660d
@@ -85,14 +85,9 @@ void checkForUnresolvedDirectives(String htmlOutputPath) {
|
||||
|
||||
int _scanFile(File file) {
|
||||
assert(path.extension(file.path) == 'html');
|
||||
Iterable<String> matches = _pattern.allMatches(file.readAsStringSync())
|
||||
final Iterable<String> matches = _pattern.allMatches(file.readAsStringSync())
|
||||
.map((RegExpMatch m ) => m.group(0));
|
||||
|
||||
// TODO(goderbauer): Remove this exception when https://github.com/dart-lang/dartdoc/issues/1945 is fixed.
|
||||
matches = matches
|
||||
.where((String m) => m != '{@inject-html}')
|
||||
.where((String m) => m != '{@end-inject-html}');
|
||||
|
||||
if (matches.isNotEmpty) {
|
||||
stderr.writeln('Found unresolved dartdoc directives in ${file.path}:');
|
||||
for (final String match in matches) {
|
||||
|
||||
Reference in New Issue
Block a user