-
Notifications
You must be signed in to change notification settings - Fork 664
feat(rome_js_formatter): 💡 Prettier Compatibility Metric #2574
Conversation
Would you mind creating a Gist and sharing the link of the gist as part of your test plan? |
no, of course |
Co-authored-by: Micha Reiser <micha@reiser.io>
…s into feat/prettier-metric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I've a few suggestions regarding the formatting and naming of the metrics.
Awesome. This is getting sooo good! I find the
hard to understand. Which is why I would opt for I think these terms are more intuitive because the common definition of an average is that you take the value for each file and divide it by the number of files, which is exactly how the metric is defined. The total Prettier Similarity metric then remains a bit more obscure but that's already the case with the per file on which is why I believe that's fine. I think it would help to either:
|
https://gist.github.com/IWANABETHATGUY/148d1c973aa3e5b604159b6f5890d538 |
@NicholasLYang , It seems our Ci has failed due to |
Awesome. Thank you. This metric will help me a lot when refactoring some of the printer behaviour to track if the changes are improving compatibility or not. Are you interested in tackling the CI integration (writing the information to a JSON file and having a command to compare the results) next? |
Would the json file need the diff info? |
I see this as a multip step process, similar to how the parser coverage works
|
Summary
part of #2555
Test Plan