Skip to content

Commit

Permalink
Merge pull request #901 from didebughu/main
Browse files Browse the repository at this point in the history
🎨 cppcheck适配无输出结果
  • Loading branch information
yql70 authored Aug 17, 2023
2 parents eb0613a + cd09cd2 commit 10043aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/tool/cppcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ def analyze(self, params):
if not os.path.exists(scan_result_path):
LogPrinter.info("result is empty ")
cppcheck_result_list = []

# 格式化cppcheck结果
cppcheck_result_list = self._format_result(source_dir, scan_result_path, rules, supported_rules)
else:
# 格式化cppcheck结果
cppcheck_result_list = self._format_result(source_dir, scan_result_path, rules, supported_rules)

# cppcheck + misra结果一起返回
result_list = cppcheck_result_list + addon_misra_result_list
Expand Down

0 comments on commit 10043aa

Please sign in to comment.