Skip to content
项目

关于

Style guide for Rego

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

[!IMPORTANT] Note: This repo has recently been donated to the OPA GitHub organization and we are in the process of integrating it into the OPA website. There may be some references to the repo's previous location while we do that.

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.

This repo is informed by OPA maintainers 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 linter and language server for Rego, which automates many style guide recommendations.

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.

探索相关项目

加载中…