Skip to content

Commit 3502256

Browse files
committed
CM-53929 - Allow cycodeignore by default. Improve logging
1 parent f1e6c27 commit 3502256

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cycode/cli/files_collector/documents_walk_ignore.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def filter_documents_with_cycodeignore(
109109
cycodeignore_path = _get_cycodeignore_path(repo_path)
110110

111111
if not os.path.exists(cycodeignore_path):
112+
logger.debug('.cycodeignore file does not exist in the repository root')
112113
return documents
113114

114115
logger.info('Using %s for filtering documents', cycodeignore_path)

cycode/cyclient/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ class Meta:
513513
unknown = EXCLUDE
514514

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

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

0 commit comments

Comments
 (0)