f8c6ffb68b
See: https://github.com/dart-lang/sdk/issues/43746 Sample run (snipped): [_fe_analyzer_shared] (master) $ dart ../dartdev/bin/dartdev.dart fix --dry-run *** The `fix` command is provisional and subject to change or removal in future releases. *** Computing fixes in _fe_analyzer_shared (dry run)... 18.5s 5945 proposed fixes in 115 files. lib/src/base/errors.dart prefer_single_quotes • 9 fixes unnecessary_const • 14 fixes slash_for_doc_comments • 35 fixes prefer_equal_for_default_values • 1 fix unnecessary_this • 1 fix lib/src/base/syntactic_entity.dart slash_for_doc_comments • 4 fixes lib/src/flow_analysis/factory_type_test_helper.dart omit_local_variable_types • 2 fixes lib/src/flow_analysis/flow_analysis.dart omit_local_variable_types • 189 fixes unnecessary_new • 73 fixes prefer_single_quotes • 7 fixes unnecessary_const • 1 fix avoid_init_to_null • 1 fix annotate_overrides • 3 fixes prefer_equal_for_default_values • 3 fixes lib/src/messages/codes.dart omit_local_variable_types • 14 fixes prefer_single_quotes • 31 fixes annotate_overrides • 11 fixes unnecessary_new • 12 fixes prefer_equal_for_default_values • 2 fixes unnecessary_this • 1 fix lib/src/messages/codes_generated.dart prefer_single_quotes • 1150 fixes unnecessary_new • 244 fixes unnecessary_const • 835 fixes omit_local_variable_types • 78 fixes lib/src/messages/severity.dart unnecessary_const • 4 fixes prefer_single_quotes • 8 fixes <snip> Change-Id: Ic5b54771eeceeefeadd2d7de8023bdb5c9f45fa5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172682 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com>
Dart CLI tooling
A command-line utility for Dart development.
Usage: dart [<vm-flags>] <command|dart-file> [<arguments>]
Global options:
-h, --help Print this usage information.
-v, --verbose Show additional command output.
--version Print the Dart SDK version.
--enable-analytics Enable anonymous analytics.
--disable-analytics Disable anonymous analytics.
Available commands:
analyze Analyze the project's Dart code.
compile Compile Dart to various formats.
create Create a new project.
format Idiomatically format Dart source code.
pub Work with packages.
run Run a Dart program.
test Run tests in this package.
Run "dart help <command>" for more information about a command.
See https://dart.dev/tools/dart-tool for detailed documentation.
Contributing
If you'd like to contribute to the Dart CLI tool, please start by reading the contribution guidelines for the Dart project. Then familiarize yourself with the [design principles][design] that guide this tool's UX.
Features and bugs
Please file feature requests and bugs in the Dart SDK [issue tracker][tracker]
with label area-dart-cli.
[design] https://github.com/dart-lang/sdk/blob/master/pkg/dartdev/doc/design.md [tracker]: https://github.com/dart-lang/sdk/labels/area-dart-cli