-
Notifications
You must be signed in to change notification settings - Fork 30
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
Rule: unused-rule
#358
Labels
Comments
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With at least one entrypoint annotation being made the norm in #154, this unlocks some new project level analytics capabilities. The one I think would be most useful is this:
opa deps
on each entrypoint.We'll need to make an exception for dynamic "general refs" rules here, and possibly some other dynamic constructs, but that's a drop in the ocean most policy projects. Some issues in how deps are calculated — there's a few open issues about this in OPA — could act as blockers here, but all the more reason to have these fixed upstream if so.
Some
opa deps
equivalence isn't likely be possible to pull of using only Rego and the AST, so this feels like a candidate for a second Go rule following theopa fmt
one.The text was updated successfully, but these errors were encountered: