Skip to content

Commit

Permalink
Merge pull request #150 from fosslight/develop
Browse files Browse the repository at this point in the history
Bug fix to add comment into .txt file
  • Loading branch information
bjk7119 authored Jun 21, 2023
2 parents bbff8ca + d141e80 commit dcb4a6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/fosslight_prechecker/_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def add_content(target_path="", input_license="", input_copyright="", input_dl_u
logger.info(f"\n# File list that have both license and copyright : {len(skip_files)} / {len(total_files_excluded)}")

# Filter by file extension
total_files_excluded = [file for file in total_files_excluded if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE]
missing_license = [file for file in missing_license if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE]
missing_copyright = [file for file in missing_copyright if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE]

Expand Down
7 changes: 4 additions & 3 deletions src/fosslight_prechecker/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
-n\t\t\t Don't exclude venv*, node_modules, .*/, and the result of FOSSLight Scanners from the analysis
Options for only 'add' mode
-l <license>\t License name(SPDX format) to add
-c <copyright>\t Copyright to add(ex, 2015-2021 LG Electronics Inc.)
-u <dl_location>\t Download Location to add(ex, https://github.com/fosslight/fosslight_prechecker)"""
Please enter any argument with double quotation marks("").
-l <license>\t License name(SPDX format) to add(ex, "Apache-2.0")
-c <copyright>\t Copyright to add(ex, "2015-2021 LG Electronics Inc.")
-u <dl_location>\t Download Location to add(ex, "https://github.com/fosslight/fosslight_prechecker")"""


def print_help_msg(exitOpt=True):
Expand Down

0 comments on commit dcb4a6b

Please sign in to comment.