Skip to content
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

opa fmt: rewrite = for non-unification cases #4076

Closed
anderseknert opened this issue Dec 1, 2021 · 2 comments
Closed

opa fmt: rewrite = for non-unification cases #4076

anderseknert opened this issue Dec 1, 2021 · 2 comments

Comments

@anderseknert
Copy link
Member

What part of OPA would you like to see improved?

Since the stated best practice is to use := for assignment and == for comparison, and only use = for unification, it would be nice if opa fmt rewrote Rego policies to follow this convention.

Describe the ideal solution

Smart detection of unification.

Describe a "Good Enough" solution

Convert at least simple cases of assignment and comparison.

@stale
Copy link

stale bot commented Dec 31, 2021

This issue has been automatically marked as inactive because it has not had any activity in the last 30 days.

@anderseknert
Copy link
Member Author

Closing in favor of #4508, where we'll try to compile all ideas for the next iteration of opa fmt (and where this is included).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant