Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 cppcheck适配无输出结果 #901

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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