Skip to content

Commit

Permalink
Add --strict to opa check
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Eknert <anders@eknert.com>
  • Loading branch information
anderseknert committed Feb 14, 2022
1 parent 4e671ba commit 1e8cec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name: OPA check
description: Check syntax of staged Rego files
entry: opa check
args: ['.']
args: ['.', '--strict']
pass_filenames: false
language: system
files: (\.rego)$
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

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

## [1.5.0] - 2021-08-14
### Added
Expand Down

0 comments on commit 1e8cec5

Please sign in to comment.