-
-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(format/grit): add logic for formatting with separators and other predicates #4327
Conversation
CodSpeed Performance ReportMerging #4327 will not alter performanceComparing Summary
|
Sorry @branberry, but I don't see any changes in the snapshots. The input and the output are the same. Usually, it's very useful to have your input unformatted (add some spaces or newlines around the implemented nodes), and if the output is different, and it's formatted the way you want. I suggest to add an unformatted case to your snapshot and also keep the formatted one. |
Oh, shoot! No need to apologize @ematipico. My apologies, I missed it. I thought I saw the correct formatting changes locally. Let me adjust this so that we have the desired formatting in the snapshot results. Thank you! EDIT: On second thought, I think I do have the formatting, but it's quite subtle. From the snapshots: Input
Output
I've just added spaces more or less around assignments, which may or may not be what is desired in terms of formatting here. Either way, I think this points to an area where I can improve, which is to make the tests I write more clear. Thanks again!! |
Don't worry, it's completely fine. This was more an advice from a person who worked from the very beginning on the formatter. While things change, sometimes it's difficult to understand the wanted/expeted formatting. Having a "completely wrong" version of the input is a good way to visually see what changes |
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.
🚀
Summary
Add the ability to handle multi-line patterns that are separated with commas.
Added simple formatting rules for:
Test Plan
Snapshot tests demonstrate correct formatting