The formatter doesn't split policy scope into multiple lines when there are `is` operations
shaobo-he-aws opened this issue · comments
shaobo-he-aws commented
Before opening, please confirm:
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Bug Category
Other
Describe the bug
Consider this policy from TinyTodo,
permit (principal, action, resource is List)
when { resource.owner == principal };
The formatter doesn't do anything with it, which should format it into,
permit (
principal,
action,
resource is List
)
when { resource.owner == principal };
Expected behavior
See above.
Reproduction steps
cargo run format <<< 'permit (principal, action, resource is List)
when { resource.owner == principal };'
Code Snippet
// Put your code below this line.
Log output
// Put your output below this line
Additional configuration
No response
Operating System
No response
Additional information and screenshots
No response