File tree Expand file tree Collapse file tree
cldk/analysis/java/codeanalyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,9 +235,9 @@ def _init_codeanalyzer(self, analysis_level=1) -> JApplication:
235235 codeanalyzer_args = ''
236236 # If target file is provided, the input is merged into a single string and passed to codeanalyzer
237237 if self .target_files :
238- target_file_options = ' ' .join ([s .strip () for s in self .target_files ])
238+ target_file_options = '-t ' .join ([s .strip () for s in self .target_files ])
239239 codeanalyzer_args = codeanalyzer_exec + shlex .split (
240- f"-i { Path (self .project_dir )} --analysis-level={ analysis_level } --target-files= { target_file_options } "
240+ f"-i { Path (self .project_dir )} --analysis-level={ analysis_level } -t { target_file_options } "
241241 )
242242 else :
243243 codeanalyzer_args = codeanalyzer_exec + shlex .split (
@@ -267,10 +267,10 @@ def _init_codeanalyzer(self, analysis_level=1) -> JApplication:
267267 codeanalyzer_args = ''
268268 # If target file is provided, the input is merged into a single string and passed to codeanalyzer
269269 if self .target_files :
270- target_file_options = ' ' .join ([s .strip () for s in self .target_files ])
270+ target_file_options = '-t ' .join ([s .strip () for s in self .target_files ])
271271 codeanalyzer_args = codeanalyzer_exec + shlex .split (
272272 f"-i { Path (self .project_dir )} --analysis-level={ analysis_level } "
273- f" -o { self .analysis_json_path } --target-files= { target_file_options } "
273+ f" -o { self .analysis_json_path } -t { target_file_options } "
274274 )
275275 else :
276276 codeanalyzer_args = codeanalyzer_exec + shlex .split (
You can’t perform that action at this time.
0 commit comments