-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs as part of
regal new rule
command (#715)
Fixes #700 Signed-off-by: Anders Eknert <anders@styra.com>
- Loading branch information
1 parent
3e92381
commit 0b79d20
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# {{.NameOriginal}} | ||
|
||
**Summary**: ADD DESCRIPTION HERE | ||
|
||
**Category**: {{.Category}} | ||
|
||
**Avoid** | ||
```rego | ||
package policy | ||
|
||
# ... ADD CODE TO AVOID HERE | ||
``` | ||
|
||
**Prefer** | ||
```rego | ||
package policy | ||
|
||
# ... ADD CODE TO PREFER HERE | ||
``` | ||
|
||
## Rationale | ||
|
||
ADD RATIONALE HERE | ||
|
||
## Configuration Options | ||
|
||
This linter rule provides the following configuration options: | ||
|
||
```yaml | ||
rules: | ||
{{.Category}}: | ||
{{.NameOriginal}}: | ||
# one of "error", "warning", "ignore" | ||
level: error | ||
``` | ||
|
||
## Community | ||
|
||
If you think you've found a problem with this rule or its documentation, would like to suggest improvements, new rules, | ||
or just talk about Regal in general, please join us in the `#regal` channel in the Styra Community | ||
[Slack](https://communityinviter.com/apps/styracommunity/signup)! |