This rule is annoying when you implement a RAII class. Somewhat I feel that we avoid using a cool language feature because we are scared of it. I understand the exception part (“There are several cases when this rule should not be followed…”) but the Sonar Qube doesn’t. If there is any way to tell it.
Hi @hanm,
I moved your message to a new thread. Please don’t resurrect old threads, it’s easier to focus on your issue if it has a dedicated thread.
What product version are you using?
We have deprecated the Rule-of-eero rule (S4963) in favor of an upgraded version of our Rule-of-five rule (S3624).