reuse.report module¶
Module that contains reports about files and projects for linting.
-
class
reuse.report.FileReport(name: os.PathLike, path: os.PathLike)[source]¶ Bases:
objectObject that holds a linting report about a single file. Importantly, it also contains SPDX File information in
spdxfile.
-
class
reuse.report.FileReportInfo(file_report, bad_licenses, missing_licenses)¶ Bases:
tuple-
property
bad_licenses¶ Alias for field number 1
-
property
file_report¶ Alias for field number 0
-
property
missing_licenses¶ Alias for field number 2
-
property
-
class
reuse.report.ProjectReport[source]¶ Bases:
objectObject that holds linting report about the project.
-
property
files_without_copyright¶ Iterable of paths that have no copyright information.
-
property
files_without_licenses¶ Iterable of paths that have no license information.
-
classmethod
generate(project: reuse.project.Project, paths: Iterable[os.PathLike] = None) → reuse.report.ProjectReport[source]¶ Generate a ProjectReport from a Project.
-
property
unused_licenses¶ Set of license identifiers that are not found in any file report.
-
property
used_licenses¶ Set of license identifiers that are found in file reports.
-
property