Skip to content

Commit 1e8cec5

Browse files
committed
Add --strict to opa check
Signed-off-by: Anders Eknert <[email protected]>
1 parent 4e671ba commit 1e8cec5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
name: OPA check
2020
description: Check syntax of staged Rego files
2121
entry: opa check
22-
args: ['.']
22+
args: ['.', '--strict']
2323
pass_filenames: false
2424
language: system
2525
files: (\.rego)$

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.5.1] - 2022-02-14
8+
### Changed
9+
- Add `--strict` flag to `opa check` command for [compiler strict mode](https://www.openpolicyagent.org/docs/latest/strict/).
710

811
## [1.5.0] - 2021-08-14
912
### Added

0 commit comments

Comments
 (0)