1313 from cycode .cli .utils .progress_bar import BaseProgressBar , ProgressBarSection
1414 from cycode .cyclient import models
1515
16+
1617logger = get_logger ('File Excluder' )
1718
1819
1920def _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