build: use example stderr config when validating rules
This commit is contained in:
parent
a68975c624
commit
731c87e85c
10
Makefile
10
Makefile
|
@ -118,12 +118,18 @@ run-rules: ## validate the rules directory
|
||||||
find $(ROOT_PATH)/rules -maxdepth 1 -name '*.yml' | while read file; \
|
find $(ROOT_PATH)/rules -maxdepth 1 -name '*.yml' | while read file; \
|
||||||
do \
|
do \
|
||||||
echo "Validating $${file}..."; \
|
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
|
done
|
||||||
|
|
||||||
run-stream: ## validate stdin and write it to stdout, errors to stderr
|
run-stream: ## validate stdin and write it to stdout, errors to stderr
|
||||||
@node out/bundle.js \
|
@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 - \
|
--dest - \
|
||||||
--format yaml \
|
--format yaml \
|
||||||
--rules $(ROOT_PATH)/rules/kubernetes.yml \
|
--rules $(ROOT_PATH)/rules/kubernetes.yml \
|
||||||
|
|
Loading…
Reference in New Issue