StyraInc / regal

Regal is a linter and language server for Rego, bringing your policy development experience to the next level!
https://docs.styra.com/regal
Apache License 2.0
261 stars 35 forks source link

Allow setting different `rule-length` for tests #1125

Open anderseknert opened 1 month ago

anderseknert commented 1 month ago

We have a bunch of inline ignores for the rule-length linter in our tests, as we want to test that the data output from rules is in the expected format. This isn't really composable, and introducing helper rules would not improve readability. It would this be good if it was possible to set the rule-length max value separately for _test policies.