Giter VIP home page Giter VIP logo

Comments (2)

pombredanne avatar pombredanne commented on August 18, 2024

This would be useful indeed but there may be some gremlins along the way as this is the general processing flow:
0. Run pre-scan plugins

  1. Run all scanners on one file. Cache the results on disk in a temp JSON file, one such file for each file scanned (this is stored on disk as soon as you have more than 10,000 files scanned)
  2. Run the "process_codebase" step of each scanner one after the other that iterate on the whole codebase and can amend the results from step 1.
  3. Run post-scan plugins one after the other that iterate on the whole codebase and can amend the results from step 1 and step 2.
  4. Run output plugins to create JSON/SBOM outputs

We could technically output some JSON lines early, or some pseudo JSON-like lines, and output the headers and summaries at the end, but there no way to make sure the results are correct and would not be amended after the initial scanner step.

Now, what is your concern? getting some details of the scans early for diagnostic purpose?
Or stream processing large scans?

from scancode-toolkit.

armijnhemel avatar armijnhemel commented on August 18, 2024

Now, what is your concern? getting some details of the scans early for diagnostic purpose? Or stream processing large scans?

Mostly the latter. Of course, if there are other ways to speed up scancode that would also help a lot.

Another thing is that right now it isn't too easy to extract results for a single file from the larger scancode file. So what I might actually be after is the temp JSON file from the cache (one per file).

from scancode-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.