Home

Awesome

Rego Style Guide

This repository contains source code for the Rego Style Guide.

The purpose of this style guide is to provide a collection of recommendations and best practices for authoring Rego. From Styra, the founders of Open Policy Agent (OPA), and some of the most experienced members of the community, we hope to share lessons learnt from authoring and reviewing hundreds of thousands of lines of Rego over the years.

[!NOTE] You might also be interested in checking out Regal, the new linter for Rego from Styra.

If you are interested in suggesting changes to the guide's content, please feel free to raise an issue or PR on this repo. The document containing the guide's content can be found in style-guide.md.

For questions, discussions and announcements related to Styra products, services and open source projects, please join the Styra community on Slack!