melos icon indicating copy to clipboard operation
melos copied to clipboard

request: `melos analyze`

Open jpnurmi opened this issue 3 years ago • 1 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues.

Command

melos analyze [--fatal-infos] [--[no-]fatal-warnings]

Description

It would be nice to have a built-in Melos command for analyzing projects. The command should accept --fatal-infos and --[no-]fatal-warnings arguments.

Reasoning

I think it would be useful because I have such a script for every project of mine using Melos. :wink:

Additional context and comments

It's common for Melos projects to define a script that runs either dart analyze or flutter analyze, something like:

analyze: melos exec -c1 -- flutter analyze --fatal-infos .

jpnurmi avatar Nov 25 '22 15:11 jpnurmi

I agree, I have the same experience! format, test and maybe generate (for build_runner) are similarly universally useful.

blaugold avatar Nov 30 '22 09:11 blaugold

I'm really interested in this feature request, and I might be able to contribute. But I'm not sure what the 'Accepted' tag means. I think it means that the feature request has been approved, but I'm not sure if someone is already working on it?

jessicatarra avatar Mar 08 '24 23:03 jessicatarra

@jessicatarra it just means that we (the maintainers) also think this is a good idea, so if you want to contribute a PR implementing this feature, feel free! :)

spydon avatar Mar 09 '24 07:03 spydon