Replies: 3 comments 1 reply
-
If the tests are correct, it should be " L0369: hook field error while processing 'string': string " |
Beta Was this translation helpful? Give feedback.
-
It seems you're facing an issue with SonarQube not detecting defects and vulnerabilities properly, and you've provided a code snippet for analysis. The provided code snippet appears to be written in C/C++. Let's start by analyzing the code and identifying potential issues To resolve the issues and improve the code quality, consider the following steps: Initialize the Person object p in the main function before passing it to processPerson. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
My test environment is sonarqube-9.9.1.69595 and the plug-in is SONa-xx-plugin-2.1.1.488.jar. The current problem is that only odors can be detected, and defects and vulnerabilities cannot be detected
Test1.cpp::
struct Person {
char name[20];
int age;
};
void processPerson(struct Person person) {
// 处理 person 字段
}
int main() {
struct Person p;
processPerson(p); // 调用处理函数
return 0;
}
Beta Was this translation helpful? Give feedback.
All reactions