c# - Sonarqube 规则的限制

标签 c# sonarqube

我已设置 SonarQube 来管理我的项目的代码质量,但我遇到了以下问题: 在测试项目中,我不想运行此规则:

Source files should have a sufficient density of comment lines common-cs:InsufficientCommentDensity

我该怎么做?我尝试添加问题 ->忽略 block 中的问题:正则表达式以模式开始 block

using NUnit.Framework;

但没有成功,该规则仍然出现在测试文件中。

最佳答案

Ticket创建的。 同时,您可以:

  • 完全停用规则
  • 将标记为无法修复的问题
  • set an exclusion关于所有问题的测试文件

关于c# - Sonarqube 规则的限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41219922/

相关文章:

c# - MVC5 Razor html.dropdownlistfor 当值在数组中时设置选择

c# - 无法在 IronPython 和 C# 中将类实现和接口(interface)转换为此接口(interface)

c# - 运行多个 powershell 命令

c# - Byte to String to byte 转换莫名其妙的错误

java - Sonar 占用太多空间和时间

plugins - pluginRepository的Gradle配置

sonarqube - 如何更改现有 Sonar 快照的日期?

c# - 从绑定(bind)到 DataGridView 的 DataTable 中删除最后一个 DataRow 时如何防止出错?

java - SonarQube 报告警告 : 'A prepared statement is generated from a non constant string'

java - Findbugs 来自构建器样式链式函数调用的未检查/未确认的转换