File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ def run(
134
134
codemod_registry : registry .CodemodRegistry | None = None ,
135
135
sast_only : bool = False ,
136
136
ai_client : bool = True ,
137
+ log_matched_files : bool = False ,
137
138
) -> tuple [CodeTF | None , int , TokenUsage ]:
138
139
start = datetime .datetime .now ()
139
140
@@ -192,9 +193,12 @@ def run(
192
193
log_list (logging .INFO , "including paths" , context .included_paths )
193
194
log_list (logging .INFO , "excluding paths" , path_exclude )
194
195
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
+ )
198
202
199
203
context .semgrep_prefilter_results = find_semgrep_results (
200
204
context ,
@@ -279,6 +283,7 @@ def _run_cli(original_args) -> int:
279
283
original_cli_args = original_args ,
280
284
codemod_registry = codemod_registry ,
281
285
sast_only = argv .sonar_issues_json or argv .sarif ,
286
+ log_matched_files = True ,
282
287
)
283
288
return status
284
289
You can’t perform that action at this time.
0 commit comments