diff --git a/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/externalrules/CxxExternalRuleRepository.java b/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/externalrules/CxxExternalRuleRepository.java index a0ec24d56e..513d3dda76 100644 --- a/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/externalrules/CxxExternalRuleRepository.java +++ b/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/externalrules/CxxExternalRuleRepository.java @@ -27,6 +27,7 @@ import org.sonar.api.server.rule.RulesDefinitionXmlLoader; import org.sonar.plugins.cxx.CxxLanguage; import org.sonar.plugins.cxx.utils.CxxUtils; +import org.sonar.squidbridge.rules.SqaleXmlLoader; /** * Loads the external rules configuration file. @@ -59,6 +60,7 @@ public void define(Context context) { } } + SqaleXmlLoader.load(repository, "/com/sonar/sqale/cxx-model.xml"); //i18nLoader.load(repository); //@todo? repository.done(); } diff --git a/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/utils/CxxAbstractRuleRepository.java b/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/utils/CxxAbstractRuleRepository.java index 45c7b68cb8..1e29e38df8 100644 --- a/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/utils/CxxAbstractRuleRepository.java +++ b/sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/utils/CxxAbstractRuleRepository.java @@ -30,6 +30,7 @@ import org.sonar.api.server.rule.RulesDefinition; import org.sonar.api.server.rule.RulesDefinitionXmlLoader; import org.sonar.plugins.cxx.CxxLanguage; +import org.sonar.squidbridge.rules.SqaleXmlLoader; /** * {@inheritDoc} @@ -80,6 +81,7 @@ public void define(Context context) { } //i18nLoader.load(repository); //@todo? + SqaleXmlLoader.load(repository, "/com/sonar/sqale/cxx-model.xml"); repository.done(); }