Skip to content

Commit

Permalink
add regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Ryan committed Jul 18, 2019
1 parent be031f8 commit 5530659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/commands/test/test.go
Expand Up @@ -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))
}

Expand Down

0 comments on commit 5530659

Please sign in to comment.