From 1e8cec520c2b2282d06ec022243e4c1204a2d265 Mon Sep 17 00:00:00 2001 From: Anders Eknert Date: Mon, 14 Feb 2022 09:19:14 +0100 Subject: [PATCH] Add --strict to opa check Signed-off-by: Anders Eknert --- .pre-commit-hooks.yaml | 2 +- CHANGELOG.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 641ffc5..73acbde 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -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)$ diff --git a/CHANGELOG.md b/CHANGELOG.md index 2556b65..f22272c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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