Skip to content

Update dartdoc driver to match current behaviour #132078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions dev/tools/dartdoc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Future<void> main(List<String> arguments) async {
final List<String> dartdocBaseArgs = <String>[
'global',
'run',
if (args['checked'] as bool) '-c',
if (args['checked'] as bool) '--enable-asserts',
'dartdoc',
];

Expand Down Expand Up @@ -229,8 +229,7 @@ Future<void> main(List<String> arguments) async {
));
printStream(process.stdout, prefix: args['json'] as bool ? '' : 'dartdoc:stdout: ',
filter: args['verbose'] as bool ? const <Pattern>[] : <Pattern>[
RegExp(r'^generating docs for library '), // unnecessary verbosity
RegExp(r'^pars'), // unnecessary verbosity
RegExp(r'^Generating docs for library '), // unnecessary verbosity
],
);
printStream(process.stderr, prefix: args['json'] as bool ? '' : 'dartdoc:stderr: ',
Expand Down Expand Up @@ -259,7 +258,7 @@ ArgParser _createArgsParser() {
'filter out some known false positives (off). Shut this off '
'locally if you want to address Flutter-specific issues.');
parser.addFlag('checked', abbr: 'c',
help: 'Run dartdoc in checked mode.');
help: 'Run dartdoc with asserts enabled.');
parser.addFlag('json',
help: 'Display json-formatted output from dartdoc and skip stdout/stderr prefixing.');
parser.addFlag('validate-links',
Expand Down