vsts-flutter-tasks icon indicating copy to clipboard operation
vsts-flutter-tasks copied to clipboard

Running analyzer

Open ghost opened this issue 5 years ago • 3 comments

It would be really helpful if we could run the dart analyzer.

https://flutter.dev/docs/testing/debugging#the-dart-analyzer

Thank you!

ghost avatar Sep 17 '19 08:09 ghost

To add, I would also like to see flutter analyze task.

MrLightful avatar Sep 23 '19 09:09 MrLightful

In the meantime you can use the Flutter Command task from latest version.

aloisdeniel avatar May 08 '20 09:05 aloisdeniel

What is the proper way to run the analyzer with a command? I have the following pipeline:

steps:
- task: FlutterInstall@0
  inputs:
    channel: 'stable'
    version: 'custom'
    customVersion: 'v1.12.13+hotfix.9'
- task: FlutterCommand@0
  inputs:
    arguments: 'flutter analyze'

But there is no output from the actual command:

2020-05-25T17:07:24.9211590Z ##[section]Starting: FlutterCommand
2020-05-25T17:07:24.9221660Z ==============================================================================
2020-05-25T17:07:24.9222020Z Task         : Flutter Command
2020-05-25T17:07:24.9222380Z Description  : Launch a custom Flutter command with custom arguments.
2020-05-25T17:07:24.9222670Z Version      : 0.2.32
2020-05-25T17:07:24.9222900Z Author       : Aloïs Deniel
2020-05-25T17:07:24.9223410Z Help         : Don't forget to insert a 'Flutter Install' task before. [More Information](https://github.com/aloisdeniel/vsts-flutter-tasks)
2020-05-25T17:07:24.9224010Z ==============================================================================
2020-05-25T17:07:25.0811470Z ##[section]Finishing: FlutterCommand

The step is marked as successful (green color) although there are warnings in the project and it should fail? Am I doing something wrong?

Max-Might avatar May 25 '20 17:05 Max-Might