devonfw/solicitor

ScancodeFileAdapter needs refactoring

Closed this issue · 0 comments

The ScancodeFileAdapter (part of the experimental integration with Scancode) requires a refactoring: Currently it comprises the following functionality within a single class:

  • Loading the Scancode data from the filesystem
  • Parsing and transforming the data to the ComponentInfo datastructure (where transforming contains a lot of heuristic business code)
  • Loading the Curation data from the filesystem
  • Parsing the curation data and applying it to the ComponentInfo data structure

This should be separated into different classes/beans to separate the different aspects. Specifically it should be possible to easier change the technical persistence layer (currently file system) from the business logic.