Comment inside Doxygen code block triggers cpp:S1103
/**
* Foo function
* Example usage:
* @code
* foo(); // Make foo
* @endcode
*/
void foo();
Rule should exclude code blocks like cpp:S125 does.
Enterprise Edition v2025.1.1 (104738)
Comment inside Doxygen code block triggers cpp:S1103
/**
* Foo function
* Example usage:
* @code
* foo(); // Make foo
* @endcode
*/
void foo();
Rule should exclude code blocks like cpp:S125 does.
Enterprise Edition v2025.1.1 (104738)
Hi @terok and thanks for your message.
I agree that this is a false positive. I created a ticket to reevaluate this rule on our side, as I see multiple approaches to avoiding it.
In the meantime, don’t hesitate to disable that specific rule that has limited value if you work in an IDE.