Must-share information (formatted with Markdown):
SonarQube (Enterprise)
Docker (I think)
We’ve got around 3,500+ false positives coming from our use of the Qt Framework. Qt uses the new idiom to create new instances of classes. The warnings are about our code when we create Qt classes, not from the Qt code itself.
How can we set up a rule to suppress these warnings in the context where we are using Qt? I’m aware of the NOSONAR line comment which would suppress them, but that is going to be a lot of work to annotate all the affected lines.
One example of the warning is:
" [Replace the use of “new” with an operation that automatically manages the memory.]"
I think there is a development ticket to help improve Sonar with Qt. Please upvote that ticket for me!
Do not want to turn off the warning for specific files, only when we are using Qt. The warning may be valid for other parts of a file where we are using Qt, but for the Qt-usage itself it is a false positive.