-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Document formatter error shrinking #5915
Document formatter error shrinking #5915
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
PR Check ResultsBenchmarkLinux
Windows
|
b0c9d41
to
de466b9
Compare
6d4ca8e
to
963a352
Compare
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.
The documentation looks good to me.
I recommend splitting the other changes into their own PR, it otherwise reading the Git history. Who would suspect that a PR Documenting... contains code changes.
Splitting should be straightforward as each change is its own commit. You can split the PR by using gt branch split
good point, i didn't consider how this interacts with squash merge |
**Summary** This adds a sanity check to the minimizer script that the input matches the condition (e.g. unstable formatting). Otherwise we run through all checks with the whole file, which is extremely slow. It's more reasonable for downstream usage to write an empty string to the output file instead. It also prints the minimized code in the end
963a352
to
547a176
Compare
Summary
Don't minimize files that don't match in the first place This adds a sanity check to the minimizer script that the
input matches the condition (e.g. unstable formatting). Otherwise we run
through all checks with the whole file, which is extremely slow. It's
more reasonable for downstream usage to write an empty string to the
output file instead.