We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc0533a commit e81868cCopy full SHA for e81868c
cycode/cli/utils/scan_batch.py
@@ -50,7 +50,11 @@ def run_parallel_batched_scan(
50
progress_bar: 'BaseProgressBar',
51
) -> Tuple[Dict[str, 'CliError'], List['LocalScanResult']]:
52
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)
+
54
+ if scan_type == consts.SCA_SCAN_TYPE:
55
+ batches = [documents]
56
+ else:
57
+ batches = split_documents_into_batches(documents, max_size)
58
59
progress_bar.set_section_length(ScanProgressBarSection.SCAN, len(batches)) # * 3
60
# TODO(MarshalX): we should multiply the count of batches in SCAN section because each batch has 3 steps:
0 commit comments