flutter analyze
Analyze the project's Dart code
Options
Name | Description |
---|---|
-h, --help | Print this usage information |
-v, --verbose | Noisy 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-analytics | Suppress analytics reporting when this command runs |
--current-package | Analyze the current project, if applicable |
--no-current-package | Don't analyze the current project, if applicable |
--watch | Run 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 |
--pub | Run 'flutter pub get' before executing this command |
--no-pub | Don't run 'flutter pub get' before executing this command |
--congratulate | Show output even when there are no errors, warnings, hints, or lints. Ignored if --watch is specified |
--no-congratulate | Hide output even when there are no errors, warnings, hints, or lints. Ignored if --watch is specified |
--preamble | When analyzing the flutter repository, display the number of files that will be analyzed. Ignored if --watch is specified |
--no-preamble | When analyzing the flutter repository, don't display the number of files that will be analyzed. Ignored if --watch is specified |
--fatal-infos | Treat info level issues as fatal |
--no-fatal-infos | Don't treat info level issues as fatal |
--fatal-warnings | Treat warning level issues as fatal |
--no-fatal-warnings | Don't treat warning level issues as fatal |