SoftwareUnderstanding / inspect4py

Static code analysis package for Python repositories
https://inspect4py.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
27 stars 10 forks source link

Extend license detection to include extracted license text #396

Closed WilliamsCJ closed 1 year ago

WilliamsCJ commented 1 year ago

Augment license detection with the extraction of the license text itself.

Adds:

License text extraction - the full text of the repository license is now included in dir_info. Can be access with key ["license"]["extracted_text"] Additional unit test for license extraction

Changes:

Nests extracted text and detected license type under the license key for consistency. Changes detected license type key in dir_info JSON from ["detected_license"] to ["license"]["detected_type"] Amends current license detection unit test to use new JSON key structure

WilliamsCJ commented 1 year ago

@rosafilgueira