声纳的coverage_exclusions与exclusions有什么区别?

时间:2019-02-28 10:18:02

标签: javascript node.js sonarqube sonarqube-scan

sonar排除项与声纳排除项有什么区别?例如:

Option Explicit Sub add_filter_2_existing_autofilter() Dim FilterRange As Range ThisWorkbook.Sheets("Music").Select 'ShowAllData - error if no filter is set On Error Resume Next ActiveSheet.ShowAllData On Error GoTo 0 'These do not work 'ThisWorkbook.Sheets("Music").AutoFilter Field:=5, Criteria1:="Rock" 'ThisWorkbook.Sheets("Music").FilterRange.AutoFilter Field:=5, Criteria1:="Rock", Operator:=xlFilterValues Set FilterRange = Sheets("Music").AutoFilter.Range FilterRange.AutoFilter Field:=5, Criteria1:="Rock", Operator:=xlFilterValues 'OR one of the following equivalents, which also work: 'ThisWorkbook.Sheets("Music").Range(FilterRange.Address).AutoFilter Field:=3, Criteria1:="Rock", Operator:=xlFilterValues 'ThisWorkbook.Sheets("Music").Range("A1").AutoFilter Field:=5, Criteria1:="Rock", Operator:=xlFilterValues 'ThisWorkbook.Sheets("Music").Range("A1000").AutoFilter Field:=5, Criteria1:="Rock", Operator:=xlFilterValues 'ThisWorkbook.Sheets("Music").Range("XFD1").AutoFilter Field:=5, Criteria1:="Rock", Operator:=xlFilterValues End Sub

1 个答案:

答案 0 :(得分:1)

sonar.coverage.exclusions从测试覆盖率指标中排除了一些文件,但仍对这些文件进行了分析:其他指标,重复项,编码规则...

sonar.exclusions完全从分析中排除了一些文件:这些文件根本不在SonarQube中出现。

请参见https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/

sonar.exclusionssonar.coverage.exclusions是SonarQube的标准属性名称。我不知道您使用的工具如何根据您的配置文件将这些属性提供给分析。