Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: help beginners to figure out what MISSING LICENSES means #812

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/reuse/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ def format_plain(report: ProjectReport) -> str:

# Missing licenses
if report.missing_licenses:
output.write("# " + _("MISSING LICENSES") + "\n\n")
output.write("# " + _("MISSING LICENSES") + "\n")
output.write(
_(
"The corresponding license txt files "
"were not found in the directory LICENSES"
) + "\n\n"
)
for lic, files in sorted(report.missing_licenses.items()):
output.write(_("'{}' found in:").format(lic) + "\n")
for file in sorted(files):
Expand Down
Loading