Improve rulesIf evaluation #4914
build.yml
on: pull_request
yamllint
5s
typecheck
12s
eslint
9s
unused-deps
8s
test
4m 2s
CodeQL
1m 12s
Matrix: smoke-test
Annotations
11 errors
|
typecheck
Process completed with exit code 2.
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"test/url" =~ "/test/ur/"'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"foo" =~ "/foo/"'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"foo"=~ /foo/'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"foo"=~/foo/'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"foo"=~ /foo/'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"foo" =~ /foo/'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"foo" !~ /foo/'
=> false:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"1.11" =~ /^([[:digit:]]+(.[[:digit:]]+)*|latest)$/'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"Hello World" =~ /hello world/i'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|
|
[threads] tests/rules-regex.test.ts > gitlab rules regex > - if: '"Hello World" =~ "/hello world/i"'
=> true:
src/utils.ts#L307
ReferenceError: rhs is not defined
❯ walk src/utils.ts:307:33
❯ Function.evaluateRuleIf src/utils.ts:372:16
❯ Function.getRulesResult src/utils.ts:220:24
❯ tests/rules-regex.test.ts:52:23
|