Skip to content

Commit

Permalink
Change cover sheet fail str
Browse files Browse the repository at this point in the history
Signed-off-by: jiyeong.seok <[email protected]>
  • Loading branch information
dd-jy committed Nov 5, 2024
1 parent 87b04d0 commit 668b46a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fosslight_dependency/run_dependency_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
'OSS Version', 'License', 'Download Location',
'Homepage', 'Copyright Text', 'Exclude',
'Comment', 'Depends On']}
CUSTOMIZED_FORMAT = {'excel': '.xlsx', 'csv': '.csv', 'opossum': '.json', 'yaml': '.yaml',
'spdx-yaml': '.yaml', 'spdx-json': '.json', 'spdx-xml': '.xml',
'spdx-tag': '.tag'}
_exclude_dir = ['node_moduels', 'venv']


Expand Down Expand Up @@ -220,7 +217,8 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
if len(success_pm) > 0:
scan_item.set_cover_comment(f"Analyzed Package manager: {', '.join(success_pm)}")
if len(fail_pm) > 0:
info_msg = 'Check https://fosslight.org/fosslight-guide-en/scanner/3_dependency.html#-prerequisite.'
info_msg = 'Check log file(fosslight_log*.txt) ' \
'and https://fosslight.org/fosslight-guide-en/scanner/3_dependency.html#-prerequisite.'
scan_item.set_cover_comment(f"Analysis failed Package manager: {', '.join(fail_pm)} ({info_msg})")
else:
scan_item.set_cover_comment("No Package manager detected.")
Expand Down

0 comments on commit 668b46a

Please sign in to comment.