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

Use betteralign for struct alignment #1132

Closed anderseknert closed 1 month ago

anderseknert commented 1 month ago

Saving us some bytes ;) A few things had to be fixed, but nothing I'd consider breaking.

Not too important though, so happy to close if someone else is concerned :P

anderseknert commented 1 month ago

@charlieegan3 there used to be an malign linter to do this, but it seems dead. Frankly though, for anything that isn't in an absolute hot path where millions of objects are created... this is mostly just of academic interest / benefit. I would not want to have external contributor PRs fail for this, for example. If we run this check ourselves once a year or so, that's fine with me :)