Skip to content

Commit 63a641e

Browse files
committed
CM-53929 - Fix formatting/inline arguments
1 parent 3502256 commit 63a641e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cycode/cli/apps/report/sbom/path/path_command.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ def path_command(
3737
report_execution_id = -1
3838

3939
try:
40-
is_cycodeignore_allowed = is_cycodeignore_allowed_by_scan_config(ctx)
4140
documents = get_relevant_documents(
4241
progress_bar,
4342
SbomReportProgressBarSection.PREPARE_LOCAL_FILES,
4443
consts.SCA_SCAN_TYPE,
4544
(str(path),),
46-
is_cycodeignore_allowed=is_cycodeignore_allowed,
45+
is_cycodeignore_allowed=is_cycodeignore_allowed_by_scan_config(ctx),
4746
)
4847
# TODO(MarshalX): combine perform_pre_scan_documents_actions with get_relevant_document.
4948
# unhardcode usage of context in perform_pre_scan_documents_actions

cycode/cli/apps/scan/code_scanner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ def scan_disk_files(ctx: typer.Context, paths: tuple[str, ...]) -> None:
4646
progress_bar = ctx.obj['progress_bar']
4747

4848
try:
49-
is_cycodeignore_allowed = is_cycodeignore_allowed_by_scan_config(ctx)
5049
documents = get_relevant_documents(
5150
progress_bar,
5251
ScanProgressBarSection.PREPARE_LOCAL_FILES,
5352
scan_type,
5453
paths,
55-
is_cycodeignore_allowed=is_cycodeignore_allowed,
54+
is_cycodeignore_allowed=is_cycodeignore_allowed_by_scan_config(ctx),
5655
)
5756
add_sca_dependencies_tree_documents_if_needed(ctx, scan_type, documents)
5857
scan_documents(ctx, documents, get_scan_parameters(ctx, paths))

0 commit comments

Comments
 (0)