-
Notifications
You must be signed in to change notification settings - Fork 107
Fix formatter comment reordering inside euid and on if-then-else #861
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
Conversation
Signed-off-by: John Kastner <[email protected]>
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.
LGTM. Thanks a lot.
It'd great if we can update the fuzzing target to test that there are no reorderings. |
Found the |
Cargo.lock | ||
Cargo.lock | ||
|
||
# Generated by `insta` on failing test case. Should run `cargo insta review` |
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.
What's this from?
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.
see #856
Signed-off-by: John Kastner <[email protected]>
Signed-off-by: John Kastner <[email protected]>
Signed-off-by: John Kastner <[email protected]>
Description of changes
Fix #787 and a similar comment reordering issue I found for if-then-else expressions.
Based on the existing tests and some time running the
formatter
fuzz target locally, I'm fairly confident that not addingend_comment
inVariableDef
won't break anything, but review is of course appreciated.As a side effect of the
VariableDef
change, a line break is introduced in the policy scope for some policies in test.cedar. I don't understand how that was introduced, but I'm willing to accept it.Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy
(e.g., addition of a new API).I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):