mutaml icon indicating copy to clipboard operation
mutaml copied to clipboard

Apply mutaml per module

Open anton-trunov opened this issue 3 years ago • 3 comments

Hi, I'd like to thank you for creating this tool! Is it possible to do mutations only on a subset of modules in a library? I'd like to try it on our project, but for the sake of performance I'd like to run it only on one or two important modules and not to alter the library structure of the project.

anton-trunov avatar Jun 06 '22 11:06 anton-trunov

Thanks!

Is it possible to do mutations only on a subset of modules in a library?

Unfortunately I don't think this is possible at the moment, sorry. A PR is welcome though... :wink:

jmid avatar Jun 07 '22 06:06 jmid

Great! Any pointers/suggestions you might have regarding UI/UX or implementation of this feature?

anton-trunov avatar Jun 10 '22 14:06 anton-trunov

I think a UI akin to https://github.com/aantron/bisect_ppx would be nice!

I could imagine excluding mutation

  • per file-name perhaps akin to https://github.com/aantron/bisect_ppx/blob/master/doc/advanced.md#Excluding and/or
  • per module/function via an attribute [@mutation off] akin to https://github.com/aantron/bisect_ppx#Exclusion

We don't need both at once though - so either of these would be a good start! :smiley:

jmid avatar Jun 13 '22 15:06 jmid