From f399f108259602d4337167ab58876504a00f83a6 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 5 Jul 2025 13:05:24 -0600 Subject: chore: use cedar policy cli to format and lint cedar policies --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6eb1ec31..701b2422 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ setup: mise install mise exec go -- go install github.com/xlgmokha/minit@latest mise exec rust -- rustup component add clippy rustfmt + mise exec rust -- cargo install --locked cedar-policy-cli # Cargo targets build: @@ -29,9 +30,12 @@ clean: fmt: @cargo fmt + @cedar format --policies etc/authzd/policy0.cedar --write lint: @cargo clippy + @cedar check-parse --policies etc/authzd/policy0.cedar + @cedar format --policies etc/authzd/policy0.cedar --check doc: @cargo doc --open -- cgit v1.2.3