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

False positive in top-level-iteration when using ref head rules #852

Closed
anderseknert opened this issue Jun 19, 2024 · 0 comments · Fixed by #854
Closed

False positive in top-level-iteration when using ref head rules #852

anderseknert opened this issue Jun 19, 2024 · 0 comments · Fixed by #854
Labels
bug Something isn't working rule

Comments

@anderseknert
Copy link
Member

package play

import rego.v1

other := {1: "foo", 2: "bar", 3: "baz"}

something[x] := other[x] if {
    some x in [1, 2, 3]
}

While it's iteration, it's not being done at the top level, and should not be reported as such.

@anderseknert anderseknert added bug Something isn't working rule labels Jun 19, 2024
anderseknert added a commit that referenced this issue Jun 19, 2024
Fixes #852

Signed-off-by: Anders Eknert <anders@styra.com>
anderseknert added a commit that referenced this issue Jun 19, 2024
Fixes #852

Signed-off-by: Anders Eknert <anders@styra.com>
srenatus pushed a commit to srenatus/regal that referenced this issue Oct 1, 2024
…#854)

Fixes StyraInc#852

Signed-off-by: Anders Eknert <anders@styra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rule
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant