Skip to content

Commit d458a7f

Browse files
committed
Remove prechecker
Signed-off-by: jiyeong.seok <[email protected]>
1 parent b4f0cf8 commit d458a7f

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/fosslight_scanner/fosslight_scanner.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
_executed_path = ""
5353
SRC_DIR_FROM_LINK_PREFIX = "fosslight_src_dir_"
5454
SCANNER_MODE = [
55-
"all", "compare", "reuse", "prechecker", "binary",
55+
"all", "compare", "binary",
5656
"bin", "src", "source", "dependency", "dep"
5757
]
5858

@@ -183,12 +183,6 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
183183
abs_path = os.path.abspath(src_path)
184184

185185
if success:
186-
if run_prechecker:
187-
success, result = call_analysis_api(src_path, "Prechecker Lint",
188-
-1, prechecker_lint,
189-
abs_path, False, _output_dir,
190-
exclude_path=path_to_exclude)
191-
192186
if run_src:
193187
try:
194188
if fosslight_source_installed:
@@ -446,20 +440,15 @@ def run_main(mode_list, path_arg, dep_arguments, output_file_or_dir, file_format
446440
run_src = True
447441
run_bin = True
448442
run_dep = True
449-
run_prechecker = False
450-
if "prechecker" in mode_list or "reuse" in mode_list:
451-
run_prechecker = True
452443
else:
453-
if "prechecker" in mode_list or "reuse" in mode_list:
454-
run_prechecker = True
455444
if "binary" in mode_list or "bin" in mode_list:
456445
run_bin = True
457446
if "source" in mode_list or "src" in mode_list:
458447
run_src = True
459448
if "dependency" in mode_list or "dep" in mode_list:
460449
run_dep = True
461450

462-
if run_dep or run_src or run_bin or run_prechecker:
451+
if run_dep or run_src or run_bin:
463452
if src_path == "" and url_to_analyze == "":
464453
src_path, dep_arguments, url_to_analyze = get_input_mode(_executed_path, mode_list)
465454

0 commit comments

Comments
 (0)