reuse.lint module¶
All linting happens here. The linting here is nothing more than reading the reports and printing some conclusions.
-
reuse.lint.lint(report: reuse.report.ProjectReport, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>) → bool[source]¶ Lint the entire project.
-
reuse.lint.lint_bad_licenses(report: reuse.report.ProjectReport, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>) → Iterable[str][source]¶ Lint for bad licenses. Bad licenses are licenses that are not in the SPDX License List or do not start with LicenseRef-.
-
reuse.lint.lint_files_without_copyright_and_licensing(report: reuse.report.ProjectReport, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>) → Iterable[str][source]¶ Lint for files that do not have copyright or licensing information.
-
reuse.lint.lint_missing_licenses(report: reuse.report.ProjectReport, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>) → Iterable[str][source]¶ Lint for missing licenses. A license is missing when it is referenced in a file, but cannot be found.
-
reuse.lint.lint_read_errors(report: reuse.report.ProjectReport, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>) → Iterable[str][source]¶ Lint for read errors.