From 5530659809ce8a27eb13b37563dd83ba148d18f7 Mon Sep 17 00:00:00 2001 From: Brendan Ryan Date: Thu, 18 Jul 2019 13:37:45 -0700 Subject: [PATCH] add regex --- pkg/commands/test/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/test/test.go b/pkg/commands/test/test.go index ca5a843ed..e0ea9a0b5 100644 --- a/pkg/commands/test/test.go +++ b/pkg/commands/test/test.go @@ -177,13 +177,13 @@ func processData(ctx context.Context, input interface{}, compiler *ast.Compiler) // collect warnings var warnings error - for _, r := range getRules(ctx, nil, compiler) { + for _, r := range getRules(ctx, warnQ, compiler) { warnings = multierror.Append(warnings, runQuery(ctx, makeQuery(r), input, compiler)) } // collect failures var failures error - for _, r := range getRules(ctx, nil, compiler) { + for _, r := range getRules(ctx, denyQ, compiler) { failures = multierror.Append(failures, runQuery(ctx, makeQuery(r), input, compiler)) }