Skip to content

Commit 6374662

Browse files
Remove copyright from SCANOSS result (#209)
* Remove copyright from SCANOSS result Signed-off-by: Wonjae Park <[email protected]> --------- Signed-off-by: Wonjae Park <[email protected]>
1 parent 61bf94d commit 6374662

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pyparsing
2-
scanoss>=1.18.0
2+
scanoss>=1.18.0,<=1.26.3
33
XlsxWriter
44
fosslight_util>=2.1.10
55
PyYAML

src/fosslight_source/_parsing_scanoss_file.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def parsing_scanResult(scanoss_report: dict, path_to_scan: str = "", path_to_exc
6060
license_detected = []
6161
license_w_source = {"component_declared": [], "file_spdx_tag": [],
6262
"file_header": [], "license_file": [], "scancode": []}
63-
copyright_detected = []
6463
if 'licenses' in findings[0]:
6564
for license in findings[0]['licenses']:
6665

@@ -78,11 +77,6 @@ def parsing_scanResult(scanoss_report: dict, path_to_scan: str = "", path_to_exc
7877
if len(license_detected) > 0:
7978
result_item.licenses = license_detected
8079
result_item.scanoss_reference = license_w_source
81-
if 'copyrights' in findings[0]:
82-
for copyright in findings[0]['copyrights']:
83-
copyright_detected.append(copyright['name'])
84-
if len(copyright_detected) > 0:
85-
result_item.copyright = copyright_detected
8680

8781
if is_exclude_file(file_path):
8882
result_item.exclude = True

0 commit comments

Comments
 (0)