Skip to content

Commit c161e5f

Browse files
author
John Andersen
authored
Fix LGTM issues (#934)
* version scanner: Fix lgtm exclude folders issue Signed-off-by: John Andersen <[email protected]> * output engine: print mode: Remove duplicate variable assingment Signed-off-by: John Andersen <[email protected]>
1 parent fd14fc0 commit c161e5f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

cve_bin_tool/output_engine/print_mode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def html_print_mode(
2222
temp_showcase = "templates/showcase.html"
2323
temp_content = "templates/content.html"
2424
temp_base = "templates/base.html"
25-
directory = directory
2625

2726
showcase = templates_env.get_template(temp_showcase)
2827
content = templates_env.get_template(temp_content)

cve_bin_tool/version_scanner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ def __init__(
4141
self.checkers = checkers or self.load_checkers()
4242
self.score = score
4343
self.total_scanned_files = 0
44-
self.exclude_folders = exclude_folders
45-
self.exclude_folders.append(".git")
44+
self.exclude_folders = exclude_folders + [".git"]
4645

4746
self.walker = DirWalk(
4847
folder_exclude_pattern=";".join(

0 commit comments

Comments
 (0)