I created a new rule on cppdepend. My cdproj document included the new line as follows
<Query Active="True" DisplayList="True" DisplayStat="True" DisplaySelectionView="False" IsCriticalRule="False"><![CDATA[// <Name>Classes must start with an C</Name>
How can I make it appear on the sonarQube dashboard as code smell?
When CppDepend is added as an extension of SonarQube, you have to activate all its rules in your quality profile. For that you can follow these steps: