StyraInc / regal

Regal is a linter for Rego, with the goal of making your Rego magnificent!

Home Page:https://docs.styra.com/regal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

anderseknert opened this issue · comments

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.