【问题标题】:How to add the custom rules in sonarqube for c# and trigger the same如何在 sonarqube for c# 中添加自定义规则并触发相同
【发布时间】:2017-01-05 00:57:14
【问题描述】:

如何将 stylecop 或 fxcop 中创建的自定义规则添加到 c# 的 sonarqube 并触发相同的规则。? 我需要将自定义规则集 dll 和 xml 文件放在哪里。??

一点帮助就好了..

【问题讨论】:

    标签: sonarqube fxcop stylecop


    【解决方案1】:

    对于 FxCop,它非常简单:在 SonarQube 中,使用 Template for custom FxCop rules(自行记录)。

    对于 StyleCop,有 a plugin,但现在已弃用。

    【讨论】:

    • 没关系,一旦我使用这个模板创建了自定义规则。它将引用 assembliesxml 文件。我根据模板描述保留了这些文件,但它仍然不起作用..我错过了什么..??
    • 确保将the latest C# Pluginthe latest Scanner for MSBuild 一起使用(需要安装Visual Studio 2015)。 FxCop 支持是本机的,您无需进行更多配置。
    猜你喜欢
    • 2015-09-15
    • 2015-08-28
    • 1970-01-01
    • 2018-01-25
    • 1970-01-01
    • 2016-09-03
    • 2014-02-05
    • 1970-01-01
    • 2019-05-21
    相关资源
    最近更新 更多