-
What language is this for?
C++ -
Which rule?
cpp:S5008 -
Why do you believe it’s a false-positive/false-negative?
We do not have access to change function signatures of external libraries. -
SonarQube Server / Community Build - which version?
Developer Edition v10.5.1 -
How can we reproduce the problem?
class handler: public apache::thrift::TProcessorEventHandler {
...
void* getContext(const char* fn_name, void* serverContext) final {}
};
# Replace this use of "void *" with a more meaningful type
This is 100% a duplicate of this report: Rule cpp:S4998 false positive for overriden functions - Clean Code / Report False-positive / False-negative… - Sonar Community
Looking at the issue mentioned: [CPP-5365] S1238,S6188,S4998: Fix FPs with functions whose signature is not user-controlled - Jira
I don’t see cpp:S5008
mentioned, thus decided to make this report. It does not seem like I can comment or watch that issue. Also the trello board linked appears to be private.