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

`prefer-some-in-iteration` no longer reporting violation as expected

anderseknert opened this issue · comments

Taking the example from the prefer-some-in-iteration rule doesn't seem to report the violation:

package policy

import rego.v1

engineering_roles := {"engineer", "dba", "developer"}

engineers contains employee if {
    employee := data.employees[_]
    employee.role in engineering_roles
}
❯ regal lint p.rego
1 file linted. No violations found.