Skip to content
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

Create Tool for Detecting which codeblocks are causing tools to fail #5

Open
7 tasks
davewichers opened this issue Jan 31, 2021 · 0 comments
Open
7 tasks
Milestone

Comments

@davewichers
Copy link
Contributor

It should be relatively straightforward to create a tool that can determine many of the code constructs that are causing a specific tool problems. Using the expected results full details file and yaml file from a generated test suite, and the actual results for a particular tool (from BenchmarkScore), do something like:

Generate a list of every code snippet used to generate that test suite (Straight from the YAML file?).

Create bidirectional data structure like so:

  • Create a data structure for each code snippet that has links to every test case that uses it.

  • Create a data structure for each test case that has links to every code snippet used in it.

  • Pass 1: Go through each True Positive detected by the tool and mark each code snippet used in it as [correctly understood.] (i.e., both or all 3)

  • Pass 2: Go through each test case and identify any where only 1 of the snippets left is not 'understood' and generate lists for the sources, dataflows, and sinks to focus on.

  • Sanity Check: See if there are any test cases with all snippets checked, but the tool reports a False Positive.

  • Once this is working, update tool to automatically calculate this for every actual results file in the /scorecard directory. (i.e., do this for ALL tools)

I was thinking this might require multiple analysis phases, but I think that's it?

Stage 2:

  • Do something similar to detect False Positive problem areas, but analyzing what they report as TPs (but are FPs).
@davewichers davewichers transferred this issue from another repository Aug 12, 2021
@davewichers davewichers added this to the Now milestone Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants