icon

Flutter Analyze

This Step runs the flutter analyze command in a Flutter project.

The flutter analyze command is a wrapper around the dartanalyzer tool. It performs static analysis of your code. Check out the available analysis options in the Flutter repository.

Configuring the Step

  1. Set the Project Location input to the source directory of your app.

    By default, you do not have to change this.

  2. Set the Fail Severity input to the minimum level that should make the Step fail.

    By default, the Step fails on errors only. For example, you can set it to warning to make the Step fail on both analyze errors and analyze warnings.

  3. Add any flags you want to the flutter analyze command in the Additional Parameters input.

    Run flutter analyze --help to check out the available flags. For example, you can set a flag so that the command only shows an output when there are some errors, warnings, hints or lints.

Useful links

Related Steps

Similar steps

Extracts minimum required Flutter version from pubspec files

Extracts Flutter version from FVM configuration file.

Executes one or more Flutter commands. E.g. build, test or install.

Builds a Flutter project.