How can I define a cppdepend rule as code smell rule?

83 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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:

  • Create a new sonarqube C++ quality profile.
  • Extend this quality profile to add the CppDepend rules.
  • Make this new quality profile the default quality profile.