-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling in passes #142
Conversation
) | ||
try { | ||
cpg.method.whereNot(_.astParent).foreach { method => | ||
addAstParent(method, method.fullName, method.astParentType, method.astParentFullName, dstGraph) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also add handling in functions like addAstParent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
) | ||
try { | ||
// Create SOURCE_FILE edges from nodes of various types to FILE | ||
linkToSingle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also add handling for method linkToSingle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Haven't reviewed for completeness of the changes, as that will take more time to review. Have reviewed for correctness |
I have made them |
@khemrajrathore for completeness. If there is any critical error being thrown in between. I am sure it will fail the scan in finding dataflow or somewhere else. Which will make sure to log the errors in warning as well as that will indirectly mean the respective scan failure will require proper fix for the failures in overlay passes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.