- dartanalyzer 命令 (Dart 静态分析)
dartanalyzer 命令 (Dart 静态分析)
The dartanalyzer
command performs the same static analysisthat 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 filesunder the lib
, test
, and web
directories:
$ dartanalyzer lib test web
You can customize the analysis using an analysis options fileor special comments in Dart source code.For details, see Customizing static analysis.
For information on command-line options, use the —help
flag:
$ dartanalyzer --help