You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,11 @@ Since it doesn't make sense to only provide `opa test` with the files changed (a
44
44
args: ['my/policies', 'my/other/policies/']
45
45
```
46
46
47
+
#### `conftest-fmt`
48
+
Runs `conftest fmt` on any Rego files in the repository.
49
+
50
+
Note that any files changed by this hook will need to be re-added (`git add`) to be included in the commit.
51
+
47
52
#### `conftest-test`
48
53
Runs `conftest test` on any configuration file format supported by conftest.
49
54
@@ -57,3 +62,11 @@ Just like with `opa-test` you'll likely want to specify the location of your con
57
62
58
63
#### `conftest-verify`
59
64
If rego files are present in commit, runs `conftest verify` in git root directory.
65
+
66
+
Just like with `conftest-test` you'll likely want to specify the location of your conftest policies, and possibly what type of files changed should trigger the hook:
0 commit comments