-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from anderseknert/regal
Add Regal for linting Rego
- Loading branch information
Showing
11 changed files
with
129 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Lint policies with Regal | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint-policy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Regal | ||
uses: StyraInc/[email protected] | ||
with: | ||
version: v0.10.1 | ||
|
||
- name: Run Regal lint | ||
run: regal lint --format github policy |
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,22 @@ | ||
rules: | ||
idiomatic: | ||
no-defined-entrypoint: | ||
level: ignore | ||
style: | ||
avoid-get-and-list-prefix: | ||
level: ignore | ||
external-reference: | ||
level: ignore | ||
line-length: | ||
level: ignore | ||
no-whitespace-comment: | ||
level: ignore | ||
opa-fmt: | ||
level: ignore | ||
prefer-some-in-iteration: | ||
level: ignore | ||
prefer-snake-case: | ||
# 13 violations in the repo seems easy to fix | ||
level: ignore | ||
todo-comment: | ||
level: ignore |
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
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
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
Oops, something went wrong.