I am looking to create a custom ruleset to check whether code contains certain comments (block comments/normal comments) during static analysis.
Any assistance on this regard would be highly appreciated
I can't seem to find any parameters for comments or such on "choose body", while creating a new ruleset.
You need to create C++Text rule in RuleWizard:
Choose File>New>Rule from the menu bar.
Choose C++Text from the Dictionary drop-down menu and enable the By Node option.
Choose Comments (// or /*) and click OK.
The body of the comment is represented as a string and is accessible by the property 'Name'.
Right-click the Comments node and choose Name(S) from the shortcut menu.
Regular expressions are used to match strings.