From 731c87e85c7da92ebaeda0e5851f327499e904a9 Mon Sep 17 00:00:00 2001 From: ssube Date: Sat, 15 Jun 2019 20:23:37 -0500 Subject: [PATCH] build: use example stderr config when validating rules --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 920dfc2..bb78a74 100755 --- a/Makefile +++ b/Makefile @@ -118,12 +118,18 @@ run-rules: ## validate the rules directory find $(ROOT_PATH)/rules -maxdepth 1 -name '*.yml' | while read file; \ do \ echo "Validating $${file}..."; \ - node out/bundle.js --rules $(ROOT_PATH)/rules/salty-dog.yml --source $${file} --tag important; \ + node out/bundle.js \ + --config-path $(ROOT_PATH)/docs \ + --config-name config-stderr.yml \ + --rules $(ROOT_PATH)/rules/salty-dog.yml \ + --source $${file} \ + --tag important > /dev/null; \ done run-stream: ## validate stdin and write it to stdout, errors to stderr @node out/bundle.js \ - --config-path $(ROOT_PATH)/docs --config-name config-stderr.yml \ + --config-path $(ROOT_PATH)/docs \ + --config-name config-stderr.yml \ --dest - \ --format yaml \ --rules $(ROOT_PATH)/rules/kubernetes.yml \