Skip to content

Commit 236840f

Browse files
committed
CM-53944-Fixed comment
1 parent 16b8572 commit 236840f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

cycode/cli/files_collector/file_excluder.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
from cycode.cli.utils.progress_bar import BaseProgressBar, ProgressBarSection
1414
from cycode.cyclient import models
1515

16+
1617
logger = get_logger('File Excluder')
1718

1819

1920
def _is_subpath_of_cycode_configuration_folder(filename: str) -> bool:
2021
return (
21-
is_sub_path(configuration_manager.global_config_file_manager.get_config_directory_path(), filename)
22-
or is_sub_path(configuration_manager.local_config_file_manager.get_config_directory_path(), filename)
23-
or filename.endswith(ConfigFileManager.get_config_file_route())
22+
is_sub_path(configuration_manager.global_config_file_manager.get_config_directory_path(), filename)
23+
or is_sub_path(configuration_manager.local_config_file_manager.get_config_directory_path(), filename)
24+
or filename.endswith(ConfigFileManager.get_config_file_route())
2425
)
2526

2627

@@ -155,11 +156,11 @@ def _is_relevant_document_to_scan(self, scan_type: str, filename: str, content:
155156
return True
156157

157158
def exclude_irrelevant_files(
158-
self,
159-
progress_bar: 'BaseProgressBar',
160-
progress_bar_section: 'ProgressBarSection',
161-
scan_type: str,
162-
filenames: list[str],
159+
self,
160+
progress_bar: 'BaseProgressBar',
161+
progress_bar_section: 'ProgressBarSection',
162+
scan_type: str,
163+
filenames: list[str],
163164
) -> list[str]:
164165
relevant_files = []
165166
for filename in filenames:
@@ -172,7 +173,7 @@ def exclude_irrelevant_files(
172173
return relevant_files
173174

174175
def exclude_irrelevant_documents_to_scan(
175-
self, scan_type: str, documents_to_scan: list['Document']
176+
self, scan_type: str, documents_to_scan: list['Document']
176177
) -> list['Document']:
177178
logger.debug('Excluding irrelevant documents to scan')
178179

0 commit comments

Comments
 (0)