reuse.report module#
Module that contains reports about files and projects for linting.
- class reuse.report.FileReport(name, path, do_checksum=True)[source]#
Bases:
object
Object that holds a linting report about a single file.
- class reuse.report.ProjectReport(do_checksum=True)[source]#
Bases:
object
Object that holds linting report about the project.
- bill_of_materials(creator_person=None, creator_organization=None)[source]#
Generate a bill of materials from the project.
See https://spdx.org/specifications.
- Return type:
- classmethod generate(project, do_checksum=True, multiprocessing=True, add_license_concluded=False)[source]#
Generate a ProjectReport from a Project.
- Return type:
- to_dict_lint()[source]#
Collects and formats data relevant to linting from report and returns it as a dictionary.