Skip to content

Commit

Permalink
Rename some variables in ProjectReport.generate
Browse files Browse the repository at this point in the history
Reuse the same loop variable name across two consecutive loops. The
loops are very short and have a very similar purpose, and doing this
makes pylint happy.
  • Loading branch information
Wuestengecko committed Feb 22, 2024
1 parent f5b09b5 commit 8db154e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/reuse/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,14 @@ def generate(
project_report.file_reports.add(file_report)

# Missing licenses.
for missing_license in file_report.missing_licenses:
for license_name in file_report.missing_licenses:
project_report.missing_licenses.setdefault(
missing_license, set()
license_name, set()
).add(file_report.path)

# Bad licenses
for bad_license in file_report.bad_licenses:
project_report.bad_licenses.setdefault(bad_license, set()).add(
for license_name in file_report.bad_licenses:
project_report.bad_licenses.setdefault(license_name, set()).add(
file_report.path
)

Expand Down

0 comments on commit 8db154e

Please sign in to comment.