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, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]
Lint the entire project.
- Return type
- reuse.lint.lint_bad_licenses(report, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[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_deprecated_licenses(report, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]
Lint for deprecated licenses.
- reuse.lint.lint_files_without_copyright_and_licensing(report, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]
Lint for files that do not have copyright or licensing information.
- reuse.lint.lint_licenses_without_extension(report, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]
Lint for licenses without extensions.
- reuse.lint.lint_missing_licenses(report, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[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, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]
Lint for read errors.
- reuse.lint.lint_summary(report, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]
Print a summary for linting.
- Return type