Skip to content

Commit f1e6c27

Browse files
committed
CM-53929 - Fix long scan config property
1 parent a5f32c2 commit f1e6c27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cycode/cli/utils/scan_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def is_scan_failed(ctx: typer.Context) -> bool:
2525

2626
def is_cycodeignore_allowed_by_scan_config(ctx: typer.Context) -> bool:
2727
scan_config: Optional[ScanConfiguration] = ctx.obj.get('scan_config')
28-
return scan_config.is_repository_ignore_configuration_allowed if scan_config else True
28+
return scan_config.is_cycode_ignore_allowed if scan_config else True
2929

3030

3131
def generate_unique_scan_id() -> UUID:

cycode/cyclient/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,15 +505,15 @@ def build_dto(self, data: dict[str, Any], **_) -> 'SupportedModulesPreferences':
505505
@dataclass
506506
class ScanConfiguration:
507507
scannable_extensions: list[str]
508-
is_repository_ignore_configuration_allowed: bool
508+
is_cycode_ignore_allowed: bool
509509

510510

511511
class ScanConfigurationSchema(Schema):
512512
class Meta:
513513
unknown = EXCLUDE
514514

515515
scannable_extensions = fields.List(fields.String(), allow_none=True)
516-
is_repository_ignore_configuration_allowed = fields.Boolean(load_default=False)
516+
is_cycode_ignore_allowed = fields.Boolean(load_default=False)
517517

518518
@post_load
519519
def build_dto(self, data: dict[str, Any], **_) -> 'ScanConfiguration':

0 commit comments

Comments
 (0)