hey24sheep / vsts-flutter-tasks

Moved to a new project azure-flutter-tasks

Home Page:https://marketplace.visualstudio.com/items?itemName=Hey24sheep.flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add flags for Flutter Analyze Task

Giuspepe opened this issue · comments

First of all, thank you very much for maintaining this great package! It's helping a lot. :)

I want to set up a Azure Pipeline which fails if the Flutter analyzer finds any warnings or hints. To do this I could use the Flutter Command task and simply call flutter analyze --fatal-infos --fatal-warnings. However, since a Flutter Analyze task already exists, I think It would be cleaner if one could pass these flags (--[no]-fatal-infos) etc. directly to the Flutter Analyze task.

Hi @Giuspepe,

I have added the extra-args instead of a particular flag like --fatal-infos or something. Reason being that these flags are only supported on flutter >= 2.0 and many people won't be using it. So, anyone who wants this flag or any other upcoming features will be able to easily include 'n' number of flags. Check the updated readme for usage.

Let me know if there is anything else. Closing in respect to 3d87929

That's great, thank you very much!