dartanalyzer 命令 (Dart 静态分析)

The dartanalyzer command performs the same static analysis that you get when you use an IDE or editor that has Dart support.

Here’s an example of performing static analysis over all the Dart files under the lib, test, and web directories:

$ dartanalyzer lib test web

You can customize the analysis using an analysis options file or special comments in Dart source code. For details, see Customizing static analysis.

For information on command-line options, use the --help flag:

$ dartanalyzer --help