-
Notifications
You must be signed in to change notification settings - Fork 73
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
stylerignore sequences must always be in one block #1082
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1082 +/- ##
==========================================
+ Coverage 91.05% 91.10% +0.04%
==========================================
Files 46 46
Lines 2684 2698 +14
==========================================
+ Hits 2444 2458 +14
Misses 240 240
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 509bea1 is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 509bea1 is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
@IndrajeetPatil maybe you can have a look if you have time. I know the internals are quite complex, so I don't expect you to understand that. Maybe more just if the docs are grammatically understandable and maybe if we should add more tests and if yes which ones. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 509bea1 is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
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.
Thanks, @lorenzwalthert! Looks like this must have been a nightmare to debug.
I couldn't follow all the changes in the code, but the comments and the tests confirm that this fixes the original issue.
I think the current set of tests is enough for now. I already styled a few repos to check for any regressions, and found none.
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 99f6502 is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
Great, thanks @IndrajeetPatil 🥳. To me, this was a major bug and I wonder why no one before found it. Glad we solved it. |
With this PR, styling is correct for a stylerignore sequence that contains a cached expression. The solution involves ensuring that a stylerignore sequence is always processed in one block. Closes #1072.
Created on 2022-12-26 with reprex v2.0.2