File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ def run(
134134 codemod_registry : registry .CodemodRegistry | None = None ,
135135 sast_only : bool = False ,
136136 ai_client : bool = True ,
137+ log_matched_files : bool = False ,
137138) -> tuple [CodeTF | None , int , TokenUsage ]:
138139 start = datetime .datetime .now ()
139140
@@ -192,9 +193,12 @@ def run(
192193 log_list (logging .INFO , "including paths" , context .included_paths )
193194 log_list (logging .INFO , "excluding paths" , path_exclude )
194195
195- log_list (
196- logging .DEBUG , "matched files" , (str (path ) for path in context .files_to_analyze )
197- )
196+ if log_matched_files :
197+ log_list (
198+ logging .DEBUG ,
199+ "matched files" ,
200+ (str (path ) for path in context .files_to_analyze ),
201+ )
198202
199203 context .semgrep_prefilter_results = find_semgrep_results (
200204 context ,
@@ -279,6 +283,7 @@ def _run_cli(original_args) -> int:
279283 original_cli_args = original_args ,
280284 codemod_registry = codemod_registry ,
281285 sast_only = argv .sonar_issues_json or argv .sarif ,
286+ log_matched_files = True ,
282287 )
283288 return status
284289
You can’t perform that action at this time.
0 commit comments