flutter analyze

Analyze the project's Dart code

Options

NameDescription
-h, --helpPrint this usage information
-v, --verboseNoisy logging, including all shell commands executed. If used with --help, shows hidden options
-d, --device-id <device id>Target device id or name (prefixes allowed)
--suppress-analyticsSuppress analytics reporting when this command runs
--current-packageAnalyze the current project, if applicable
--no-current-packageDon't analyze the current project, if applicable
--watchRun analysis continuously, watching the filesystem for changes
--write <file path>Also output the results to a file. This is useful with --watch if you want a file to always contain the latest results
--pubRun 'flutter pub get' before executing this command
--no-pubDon't run 'flutter pub get' before executing this command
--congratulateShow output even when there are no errors, warnings, hints, or lints. Ignored if --watch is specified
--no-congratulateHide output even when there are no errors, warnings, hints, or lints. Ignored if --watch is specified
--preambleWhen analyzing the flutter repository, display the number of files that will be analyzed. Ignored if --watch is specified
--no-preambleWhen analyzing the flutter repository, don't display the number of files that will be analyzed. Ignored if --watch is specified
--fatal-infosTreat info level issues as fatal
--no-fatal-infosDon't treat info level issues as fatal
--fatal-warningsTreat warning level issues as fatal
--no-fatal-warningsDon't treat warning level issues as fatal