Sonarqube 5.4 C#的自定义规则

gra*_*e83 5 c# fxcop stylecop sonarqube

我正在使用SonarQube 5.4分析自己的C#代码,该分析按预期工作。现在,我编写了一些自定义规则,一个使用StyleCop,另一个使用FxCop在我的代码上运行,但是我找不到如何在SonarQube中导入这些自定义规则。我强调说,我将SonarQube 5.4与C#插件5.1结合使用。在我的安装中,文件夹“ rules”不存在。相反,我可以找到:

/opt/sonarqube-5.4/data/web/deploy/plugins/csharp/META-INF/lib中的sonar-fxcop-library-1.3.jar和/opt/sonarqube-5.4/extensions/中的sonar-stylecop-plugin-1.1插件。

任何人都可以帮助我在SonarQube安装中导入我的自定义规则吗?

Nic*_*eam 3

FxCop 集成:通过指定自定义 FxCop 规则来扩展Template for custom FxCop rulesSonarQube ( fxcop:CustomRuleTemplate )中的功能。[编辑] FxCop 规则现在由sonar-fxcopCheckId插件涵盖。

StyleCop 集成已弃用,因为 StyleCop 不依赖 Roslyn。