-
Notifications
You must be signed in to change notification settings - Fork 53
Configure RuleType mapping for external rules #859
Comments
@mum-viadee thanks for the request. We will think about it. |
Hi @vilchik-elena ,
Both solutions would work identically only the way and place the mapping is configured is different. The configured mapping should be used by SonarTS to import external rule issues. The rule name would be the key to look up the type and default severity in the configuration. The hard-coded mapping, as it is today could be the fallback if no configuration is found for an imported external issue. I know that the rule names are not unique, so there could be collisions between external ans build-in rules. If so, the build-in mappings for SonarTS rules should have higher priority than the configured ones. If one rule name is configured more than once, the first occurrence of the rule mapping should be used. |
I want to request a feature.
Hi, in our project we import tslint issue reports (see #619) in our CI pipeline. All external issues (eg. from tslint-microsoft-contrib) are imported as RuleType.CODE_SMELL. It would be nice, if there could be a possibility to configure a mapping between Rule and Type for external rules.
The text was updated successfully, but these errors were encountered: