Skip to content

Commit d141e80

Browse files
committed
Bug fix to add comment into .txt file
1 parent bbff8ca commit d141e80

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/fosslight_prechecker/_add.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ def add_content(target_path="", input_license="", input_copyright="", input_dl_u
450450
logger.info(f"\n# File list that have both license and copyright : {len(skip_files)} / {len(total_files_excluded)}")
451451

452452
# Filter by file extension
453+
total_files_excluded = [file for file in total_files_excluded if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE]
453454
missing_license = [file for file in missing_license if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE]
454455
missing_copyright = [file for file in missing_copyright if os.path.splitext(file)[1].lower() in EXTENSION_COMMENT_STYLE_MAP_LOWERCASE]
455456

src/fosslight_prechecker/_help.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
-n\t\t\t Don't exclude venv*, node_modules, .*/, and the result of FOSSLight Scanners from the analysis
3333
3434
Options for only 'add' mode
35-
-l <license>\t License name(SPDX format) to add
36-
-c <copyright>\t Copyright to add(ex, 2015-2021 LG Electronics Inc.)
37-
-u <dl_location>\t Download Location to add(ex, https://github.com/fosslight/fosslight_prechecker)"""
35+
Please enter any argument with double quotation marks("").
36+
-l <license>\t License name(SPDX format) to add(ex, "Apache-2.0")
37+
-c <copyright>\t Copyright to add(ex, "2015-2021 LG Electronics Inc.")
38+
-u <dl_location>\t Download Location to add(ex, "https://github.com/fosslight/fosslight_prechecker")"""
3839

3940

4041
def print_help_msg(exitOpt=True):

0 commit comments

Comments
 (0)