How can I add a special rule into SonarQube?
Deatails:
In .NET we have company convention is a subfix of special methods (and variables) “DTO”. (fe.: employeeNameDTO)
But the Sonar detect as a problem, the accepted would (camelCase) be employeeNameDto…
CouldWe involve this exception in the rules? While We should to use the normal (standard) camelCase conventions.
Hi,
The built-in rule can’t be adjusted for this, from what I can tell. I assume you’re talking about csharpsquid:S100
? What you would need to do is write your own Roslyn rule and disable the native rule.
HTH,
Ann