Skip to content

Commit e81868c

Browse files
committed
CM-44581 gradle - support restore projects and by selecting specific project
1 parent dc0533a commit e81868c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cycode/cli/utils/scan_batch.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ def run_parallel_batched_scan(
5050
progress_bar: 'BaseProgressBar',
5151
) -> Tuple[Dict[str, 'CliError'], List['LocalScanResult']]:
5252
max_size = consts.SCAN_BATCH_MAX_SIZE_IN_BYTES.get(scan_type, consts.DEFAULT_SCAN_BATCH_MAX_SIZE_IN_BYTES)
53-
batches = split_documents_into_batches(documents, max_size)
53+
54+
if scan_type == consts.SCA_SCAN_TYPE:
55+
batches = [documents]
56+
else:
57+
batches = split_documents_into_batches(documents, max_size)
5458

5559
progress_bar.set_section_length(ScanProgressBarSection.SCAN, len(batches)) # * 3
5660
# TODO(MarshalX): we should multiply the count of batches in SCAN section because each batch has 3 steps:

0 commit comments

Comments
 (0)