Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/fosslight_source/_parsing_scancode_file_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def parsing_scancode_32_earlier(scancode_file_list: list, has_error: bool = Fals
result_item.licenses = license_detected

if is_manifest_file(file_path):
result_item.is_license_text = True
result_item.is_manifest_file = True

# Remove copyright info for license text file of GPL family
if should_remove_copyright_for_gpl_license_text(license_detected, result_item.is_license_text):
Expand Down Expand Up @@ -308,7 +308,7 @@ def parsing_scancode_32_later(
result_item.is_license_text = file.get("percentage_of_license_text", 0) > 90 or is_notice_file(file_path)

if is_manifest_file(file_path) and len(license_detected) > 0:
result_item.is_license_text = True
result_item.is_manifest_file = True

# Remove copyright info for license text file of GPL family
if should_remove_copyright_for_gpl_license_text(license_detected, result_item.is_license_text):
Expand Down
1 change: 1 addition & 0 deletions src/fosslight_source/_scan_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(self, value: str) -> None:
super().__init__("")
self.source_name_or_path = value
self.is_license_text = False
self.is_manifest_file = False
self.license_reference = ""
self.scanoss_reference = {}
self.matched_lines = "" # Only for SCANOSS results
Expand Down
Loading