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

Check compliant except for files for which Exclude is True #61

Merged
merged 3 commits into from
Jun 14, 2022
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions src/fosslight_reuse/_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ def result_for_summary(oss_pkg_info_files, license_missing_files, copyright_miss
license_missing_files = list(set(license_missing_files) - set(lic_present_files_in_yaml))
copyright_missing_files = list(set(copyright_missing_files) - set(cop_present_files_in_yaml))

if len(license_missing_files) == 0 and len(copyright_missing_files) == 0:
reuse_compliant = True

# Subtract excluded file
license_missing_files = list(set(license_missing_files) - set(excluded_files))
copyright_missing_files = list(set(copyright_missing_files) - set(excluded_files))

if len(license_missing_files) == 0 and len(copyright_missing_files) == 0:
reuse_compliant = True

# Remove duplicated file
missing_both_files = list(set(license_missing_files) & set(copyright_missing_files))
license_missing_files = list(set(license_missing_files) - set(missing_both_files))
Expand Down