dartanalyzer

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:

  1. $ 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:

  1. $ dartanalyzer --help