Anders Eknert

Results 415 comments of Anders Eknert

Yeah I suppose so, but it could just be that they're unused and actually should be removed? 🤔

Let's make entrypoint annotations a recommendation then. Best practices born out of laziness 😅

Thinking about it, this would make sense as a `custom` rule where the user could simply say "for any rule named `allow`, there must be an accompanying default rule". Same...

I looked into this briefly last night, and the big challenge here is preserving user comments. These are quite common in `.regal/config.yaml` files, and they should be! That's a great...

Honestly, it's probably easier to just skip parsing altogether, just grep for `:` and then insert text straight into the document. I mean, [just look at this](https://stackoverflow.com/a/60891175/11849243).

Yeah, I looked at that but didn’t find a good example like that! It’s worth a shot, although it’s not 100% lossless AFAICS, but perhaps it’s fine to mess a...

Yeah, that’s my guess too. Will need to dig in 🤓

Just found an ancient issue in the OPA backlog around this: https://github.com/open-policy-agent/opa/issues/1799 Changing the behavior in OPA now seems... unlikely, so if we add this here we can probably consider...

Thanks! Yeah, and it'd be a good way to ensure we're not unintentionally breaking our own rules in our own docs. Not sure how we'd best handle linting the "Avoid"...

Closing this as done, as we've largely settled on option #3 here. There are some limitations to the approach where we'll still need to perform multiple `walk`s to satisfy some...