Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Elastic friends! 👋😃 Good to see so many familiar faces in the list of contributors here. Regal is a linter for Rego, and it's reaching a level of maturity where I feel confident putting it to use in some serious policy libraries.
Besides linting, the CI integration helps annotate PRs with violations at the location they happened, helping developers quickly figure out what they need to change.
As part of integrating the linter in this repo, I went ahead and fixed a number of issues reported. Naturally, I've made sure that all the Rego tests pass, but if there's any change you feel was too invasive, or perhaps changed code that some other project depend on, do let me know and I'll be happy to revert that.
Issues fixed for the following rules:
Many issues, primarily related to style, have been disabled in the Regal config for now, and I'm sure you'll want to work on having some of them enabled later.
Have a great weekend!