-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new reference rule for variables, and few fixes
- Loading branch information
1 parent
0fabf15
commit 60eec91
Showing
7 changed files
with
382 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
rules/dv-rule-variables-001/tests/ReferenceNodeRule.expect.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "PingOne DaVinci Linter", | ||
"pass": false, | ||
"errorCount": 1, | ||
"rulePackResults": [ | ||
{ | ||
"pass": false, | ||
"errorCount": 1, | ||
"lintResults": [ | ||
{ | ||
"flowName": "flow2", | ||
"flowId": "91997bdf98466fe24b155490397f65d8", | ||
"pass": false, | ||
"errorCount": 1, | ||
"errors": [ | ||
{ | ||
"code": "dv-er-variable-003", | ||
"message": "Referenced node in local variable doesn't exist", | ||
"type": "error", | ||
"recommendation": "The local variable(s) - 'local.k42obrw9lp.payload.success' contains a node id which doesn't exist within the flow", | ||
"nodeId": "8ve6xiwmj8" | ||
} | ||
], | ||
"rulesApplied": [ | ||
"dv-rule-variables-001" | ||
], | ||
"ruleResults": [ | ||
{ | ||
"ruleId": "dv-rule-variables-001", | ||
"ruleDescription": "Ensure that flow variables are used in flow. And check for flow variables referenced in nodes but not defined", | ||
"pass": false, | ||
"errorCount": 1, | ||
"errors": [ | ||
{ | ||
"code": "dv-er-variable-003", | ||
"message": "Referenced node in local variable doesn't exist", | ||
"type": "error", | ||
"recommendation": "The local variable(s) - 'local.k42obrw9lp.payload.success' contains a node id which doesn't exist within the flow", | ||
"nodeId": "8ve6xiwmj8" | ||
} | ||
] | ||
} | ||
], | ||
"rulesIgnored": [] | ||
} | ||
], | ||
"rulesIgnored": true | ||
} | ||
] | ||
} |
Oops, something went wrong.