-
Notifications
You must be signed in to change notification settings - Fork 362
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
Make IgnoredVulns
also ignore aliases
#300
Conversation
I'm a bit iffy on the style & organisation of the code. Would appreciate feedback/suggestions. |
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.
There aren't any test cases actually defined in this file.
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.
I think I gave up trying to figure out how to put these huge structures into a test at some point, but didn't remove the file.
I'm still not sure how to ergonomically add tests that are actually useful here, maybe we need to break down the functions more and test smaller parts.
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.
It's not in scope for this PR, but I think we should either add at least one test case, or remove this file so it's clear that this isn't actually being tested.
I feel like a test would be useful to make sure the output structure/order doesn't change, but that'd still require defining the whole models.VulnerabilityResults
structure somewhere.
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.
Nice, mostly looks good to me, added some initial comments.
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.
I think I gave up trying to figure out how to put these huge structures into a test at some point, but didn't remove the file.
I'm still not sure how to ergonomically add tests that are actually useful here, maybe we need to break down the functions more and test smaller parts.
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.
nice! Can we also write some tests for this?
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.
nice!!! some minor comments.
google#281 - Always also ignore aliases of ignored vulnerabilities.
google#281 - Always also ignore aliases of ignored vulnerabilities.
#281 - Always also ignore aliases of ignored vulnerabilities.