Browse Source

Add extensionless licenses to summary

license-detection
carmenbianca 3 weeks ago
parent
commit
16f8820eea
Signed by: Carmen Bianca Bakker <carmenbianca@fsfe.org> GPG Key ID: 76EBA6F6B6EA2EC9
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      src/reuse/lint.py

+ 10
- 10
src/reuse/lint.py View File

@@ -47,16 +47,6 @@ def lint(report: ProjectReport, out=sys.stdout) -> bool:
)
)

if report.licenses_without_extension:
out.write("\n")
out.write(
_(
"One or more licenses in the project do not have a file "
"extension."
)
)
out.write("\n")

out.write("\n")
if success:
out.write(
@@ -229,6 +219,16 @@ def lint_summary(report: ProjectReport, out=sys.stdout) -> None:
out.write(lic)
out.write("\n")

if report.licenses_without_extension:
out.write("* ")
out.write(_("Licenses without file extension:"))
for i, lic in enumerate(sorted(report.licenses_without_extension)):
if i:
out.write(",")
out.write(" ")
out.write(lic)
out.write("\n")

out.write("* ")
out.write(_("Read errors: {count}".format(count=len(report.read_errors))))
out.write("\n")

Loading…
Cancel
Save